Example #1
0
        internal PropInfo[] Type_GetProperties(long id)
        {
            PacketReader r = SendReceive (CommandSet.TYPE, (int)CmdType.GET_PROPERTIES, new PacketWriter ().WriteId (id));

            int n = r.ReadInt ();
            PropInfo[] res = new PropInfo [n];
            for (int i = 0; i < n; ++i) {
                res [i] = new PropInfo ();
                res [i].id = r.ReadId ();
                res [i].name = r.ReadString ();
                res [i].get_method = r.ReadId ();
                res [i].set_method = r.ReadId ();
                res [i].attrs = r.ReadInt ();
            }

            return res;
        }