Beispiel #1
0
 internal Actor_Metrics(Actor_Metrics other)
 {
     Id        = other.Id;
     Name      = other.Name;
     ClassId   = other.ClassId;
     ClassName = other.ClassName;
     Level     = other.Level;
     Exp       = other.Exp;
     Hp        = other.Hp;
     Stats     = other.Stats.Select(x => x).ToArray();
     Items     = other.Items.Select(x => new Item_Data(x)).ToArray();
     ItemNames = other.ItemNames.Select(x => x).ToArray();
     Supports  = new Dictionary <int, int>(other.Supports);
     Bond      = other.Bond;
     Lives     = other.Lives;
 }
Beispiel #2
0
        public static Actor_Metrics read(BinaryReader reader)
        {
            Actor_Metrics result = new Actor_Metrics();

            result.Id        = reader.ReadInt32();
            result.Name      = reader.ReadString();
            result.Loc       = result.Loc.read(reader);
            result.ClassId   = reader.ReadInt32();
            result.ClassName = reader.ReadString();
            result.Level     = reader.ReadInt32();
            result.Exp       = reader.ReadInt32();
            result.Hp        = reader.ReadInt32();
            result.Stats     = result.Stats.read(reader);
            result.Items     = result.Items.read(reader);
            result.ItemNames = result.ItemNames.read(reader);
            result.Supports.read(reader);
            result.Bond  = reader.ReadInt32();
            result.Lives = reader.ReadInt32();
            return(result);
        }