Ejemplo n.º 1
0
 internal Item_Metrics(Item_Metrics other)
 {
     Turn     = other.Turn;
     Team     = other.Team;
     ActorId  = other.ActorId;
     ClassId  = other.ClassId;
     ItemData = new Item_Data(other.ItemData);
     ItemName = other.ItemName;
     Loc      = other.Loc;
 }
Ejemplo n.º 2
0
        public static Item_Metrics read(BinaryReader reader)
        {
            Item_Metrics result = new Item_Metrics();

            if (!Global.LOADED_VERSION.older_than(0, 4, 6, 9))
            {
                result.Turn = reader.ReadInt32();
            }
            result.Team     = reader.ReadInt32();
            result.ActorId  = reader.ReadInt32();
            result.ClassId  = reader.ReadInt32();
            result.ItemData = Item_Data.read(reader);
            result.ItemName = reader.ReadString();
            result.Loc      = result.Loc.read(reader);
            return(result);
        }