示例#1
0
        public SimEntitySpec(BinaryReader r)
        {
            ID     = r.ReadInt32();
            CardID = r.ReadString();

            Tags = new List <Network.Entity.Tag>();
            int c = r.ReadInt32();

            for (int i = 0; i < c; ++i)
            {
                var tag = new Network.Entity.Tag();
                tag.Name  = r.ReadInt32();
                tag.Value = r.ReadInt32();
                Tags.Add(tag);
            }
        }
示例#2
0
 public static string GetValue(Network.Entity.Tag tag)
 {
     return(GetValue(tag.Name, tag.Value));
 }