跳到主要内容
版本:0.4.1

Class WukongArchetypes

Namespace: WukongMp.Sdk.Api.Implementation
Assembly: WukongMp.Sdk.dll

Provides references for core entity archetypes in WukongMP.

public class WukongArchetypes

Inheritance​

object ← WukongArchetypes

Inherited Members​

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Remarks​

Ids are positional: they are handed out in the order archetypes are registered, and the client and the relay server have to agree. Ids 2 and 3 belong to the cell and world archetypes, which Wukong does not use but still registers on both sides so that everything after them lines up. Do not close the gap.

Constructors​

WukongArchetypes()​

public WukongArchetypes()

Properties​

AreaArchetype​

public ArchetypeId AreaArchetype { get; }

Property Value​

ArchetypeId

GlobalPlayerArchetype​

Global player entity archetype. Components:

  • PlayerScopeComponent
  • PlayerComponent
public ArchetypeId GlobalPlayerArchetype { get; }

Property Value​

ArchetypeId

MainCharacterArchetype​

Area-scoped main character entity archetype. Components:

  • MainCharacterComponent
  • TransformComponent
  • HpComponent
  • NicknameComponent
  • TeamComponent
  • PvPComponent
public ArchetypeId MainCharacterArchetype { get; }

Property Value​

ArchetypeId

PvpStateArchetype​

Global PvP state entity archetype. Used by the PvP mod. Components:

  • PvpStateComponent
[Obsolete("Will be moved to the PvP mod in future refactoring.")]
public ArchetypeId PvpStateArchetype { get; }

Property Value​

ArchetypeId

TamerArchetype​

Area-scoped tamer entity archetype. Components:

  • TamerComponent
  • TransformComponent
  • HpComponent
  • NicknameComponent
  • TeamComponent
  • AnimationComponent
  • MonsterAnimationComponent
public ArchetypeId TamerArchetype { get; }

Property Value​

ArchetypeId

WorldArchetype​

public ArchetypeId WorldArchetype { get; }

Property Value​

ArchetypeId

  • Remarks
  • Constructors
    • WukongArchetypes()
  • Properties
    • AreaArchetype
    • GlobalPlayerArchetype
    • MainCharacterArchetype
    • PvpStateArchetype
    • TamerArchetype
    • WorldArchetype