public static void Deserialize(ActionDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.ID = reader.ReadInt32();
                }
                break;

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

                case 0x60002:
                {
                    ins.ScriptName = reader.ReadString();
                }
                break;
                }
            }
        }
        public ActionDefine GetActionByName(string Name, ActionDefine def = default(ActionDefine))
        {
            ActionDefine ret;

            if (_ActionByName.TryGetValue(Name, out ret))
            {
                return(ret);
            }

            if (def == default(ActionDefine))
            {
                TableLogger.ErrorLine("GetActionByName failed, Name: {0}", Name);
            }

            return(def);
        }
        public ActionDefine GetActionByID(int ID, ActionDefine def = default(ActionDefine))
        {
            ActionDefine ret;

            if (_ActionByID.TryGetValue(ID, out ret))
            {
                return(ret);
            }

            if (def == default(ActionDefine))
            {
                TableLogger.ErrorLine("GetActionByID failed, ID: {0}", ID);
            }

            return(def);
        }