public MoveCameraEvent(NPCCodex.NPCTypes enCharacterID, float fSpeed, bool bSlowAtEnd = false, bool bSlowAtStart = false) { this.xCamera = Program.GetTheGame().xCamera; this.fStartMoveSpeed = fSpeed; this.fMoveSpeed = fSpeed; this.enCharacterID = enCharacterID; this.bSlowAtEnd = bSlowAtEnd; this.bSlowAtStart = bSlowAtStart; }
public void CreateNew(EnemyCodex.EnemyTypes enEnemyType) { if (enEnemyType == EnemyCodex.EnemyTypes.Rabbi) { this.enNPCType = NPCCodex.NPCTypes.Pet_Rabby; this.sName = "Rabby"; } else if (enEnemyType == EnemyCodex.EnemyTypes.GreenSlime) { this.enNPCType = NPCCodex.NPCTypes.Pet_Slime; this.sName = "Slimy"; } else if (enEnemyType == EnemyCodex.EnemyTypes.Pumpkin) { this.enNPCType = NPCCodex.NPCTypes.Pet_Jumpkin; this.sName = "Jumpkin"; } this.xDescription = PetCodex.GetDescription(this.enNPCType); }
public NPCDescription(NPCCodex.NPCTypes p_enType, string p_sFullName) { this.enType = p_enType; this.sFullName = p_sFullName; }
public void ReadBasicInfo(NetIncomingMessage br) { this.enNPCType = (NPCCodex.NPCTypes)br.ReadInt32(); this.bySkin = br.ReadByte(); this.xDescription = PetCodex.GetDescription(this.enNPCType); }
public void ReadFrom(NetIncomingMessage br) { this.enNPCType = (NPCCodex.NPCTypes)br.ReadInt32(); this.sName = br.ReadString(); this.iLevel = (int)br.ReadByte(); this.bySkin = br.ReadByte(); this.deniStatLevels[PetInfo.PetBonus.HP] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.SP] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Damage] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Crit] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Speed] = br.ReadUInt16(); this.xDescription = PetCodex.GetDescription(this.enNPCType); this.CalculateBonusValues(); Program.GetTheGame()._Pet_AddPetBonuses(this); }
public void ReadFrom(BinaryReader br) { this.enNPCType = (NPCCodex.NPCTypes)br.ReadInt32(); this.sName = br.ReadString(); this.iLevel = (int)br.ReadByte(); this.bySkin = br.ReadByte(); this.deniStatLevels[PetInfo.PetBonus.HP] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.SP] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Damage] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Crit] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Speed] = br.ReadUInt16(); this.deniStatLevelProgress[PetInfo.PetBonus.HP] = br.ReadUInt16(); this.deniStatLevelProgress[PetInfo.PetBonus.SP] = br.ReadUInt16(); this.deniStatLevelProgress[PetInfo.PetBonus.Damage] = br.ReadUInt16(); this.deniStatLevelProgress[PetInfo.PetBonus.Crit] = br.ReadUInt16(); this.deniStatLevelProgress[PetInfo.PetBonus.Speed] = br.ReadUInt16(); this.xDescription = PetCodex.GetDescription(this.enNPCType); this.CalculateBonusValues(); }
public PetDescription(NPCCodex.NPCTypes enNPCType, EnemyCodex.EnemyTypes enEnemyType) { this.enNPCType = enNPCType; this.enEnemyType = enEnemyType; }