Exemple #1
0
        public BlongsDefine GetBlongsByNEWID(long NEWID, BlongsDefine def = default(BlongsDefine))
        {
            BlongsDefine ret;

            if (_BlongsByNEWID.TryGetValue(NEWID, out ret))
            {
                return(ret);
            }

            if (def == default(BlongsDefine))
            {
                TableLogger.ErrorLine("GetBlongsByNEWID failed, NEWID: {0}", NEWID);
            }

            return(def);
        }
Exemple #2
0
        public BlongsDefine GetBlongsByNEWName(string NEWName, BlongsDefine def = default(BlongsDefine))
        {
            BlongsDefine ret;

            if (_BlongsByNEWName.TryGetValue(NEWName, out ret))
            {
                return(ret);
            }

            if (def == default(BlongsDefine))
            {
                TableLogger.ErrorLine("GetBlongsByNEWName failed, NEWName: {0}", NEWName);
            }

            return(def);
        }
Exemple #3
0
        public static void Deserialize(BlongsDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x20000:
                {
                    ins.NEWID = reader.ReadInt64();
                }
                break;

                case 0x60001:
                {
                    ins.NEWName = reader.ReadString();
                }
                break;

                case 0x10002:
                {
                    ins.NEWIconID = reader.ReadInt32();
                }
                break;

                case 0x50003:
                {
                    ins.NEWNumericalRate = reader.ReadFloat();
                }
                break;

                case 0x10004:
                {
                    ins.NEWItemID = reader.ReadInt32();
                }
                break;
                }
            }
        }