Ejemplo n.º 1
0
        public static Data_Actor read(BinaryReader reader)
        {
            Data_Actor result = new Data_Actor();

            result.Id          = reader.ReadInt32();
            result.Name        = reader.ReadString();
            result.Description = reader.ReadString();
            result.ClassId     = reader.ReadInt32();
            result.Level       = reader.ReadInt32();
            result.BaseStats.read(reader);
            result.Growths.read(reader);
            result.WLvl.read(reader);
            result.Gender   = reader.ReadInt32();
            result.Affinity = (Affinities)reader.ReadInt32();
            result.Items.read(reader);
            result.Supports.read(reader);
            result.Skills.read(reader);
            return(result);
        }
Ejemplo n.º 2
0
 public Data_Actor(Data_Actor actor)
 {
     Id          = actor.Id;
     Name        = actor.Name;
     Description = actor.Description;
     ClassId     = actor.ClassId;
     Level       = actor.Level;
     BaseStats   = new List <int>(actor.BaseStats);
     Growths     = new List <int>(actor.Growths);
     WLvl        = new List <int>(actor.WLvl);
     Gender      = actor.Gender;
     Affinity    = actor.Affinity;
     Items       = new List <int[]>();
     foreach (int[] item_data in actor.Items)
     {
         int[] ary = new int[item_data.Length];
         Array.Copy(item_data, ary, item_data.Length);
         Items.Add(ary);
     }
     Supports = new List <string>(actor.Supports);
     Skills   = new List <int>(actor.Skills);
 }