Beispiel #1
0
        public ProtoTable Register(ProtoTable table, int index = -1)
        {
            lock (lockObject)
            {
                if (index < 0)
                {
                    index = Count;
                }
                if (index > Count)
                {
                    index = Count;
                }

                ProtoList.Insert(index, table);
                return(table);
            }
        }
Beispiel #2
0
 public ProtoListTable(ProtoTable proto)
 {
     Register(proto);
 }
Beispiel #3
0
 public PacketProto(uint id, DataStream stream, ProtoTable proto) : base(id, stream)
 {
     ProtoTable = proto;
 }