public NPC(NPCType npcType) { ID = NPCGeneratorHelper.NextID; TypeOfNPC = npcType; CurrentState = NPCState.idle; X = 0; Y = 0; // Animation data is fetched from the (simulated) database. AnimationData = AnimationDataDB.GetAnimationData(npcType); }
public NPCInState(NPCType npcType) { AnimationData = AnimationDataDB.GetAnimationData(npcType); }