Exemplo n.º 1
0
        protected override void serializeContent(ICustomDataWriter writer)
        {
            var characterInfos = new CharacterBaseInformations();

            characterInfos.Initialize(Entity);
            characterInfos.Serialize(writer);
            writer.WriteBool(false); // Is collecting stats
        }
Exemplo n.º 2
0
 private void generateEachClass()
 {
     foreach (var breed in CharacterGenerator.Instance.Breeds)
     {
         var charaInfo = new CharacterBaseInformations();
         charaInfo.Initialize(CharacterGenerator.Instance.Generate(breed.Id));
         Characters.Add(charaInfo);
     }
 }
Exemplo n.º 3
0
 private void generateRandom(int count)
 {
     for (int i = 0; i < count; i++)
     {
         var charaInfo = new CharacterBaseInformations();
         charaInfo.Initialize(CharacterGenerator.Instance.Generate());
         Characters.Add(charaInfo);
     }
 }