Example #1
0
        /// <summary>
        /// LUA结构支持
        /// </summary>
        /// <returns></returns>
        public override void GetLuaStruct(StringBuilder code)
        {
            base.GetLuaStruct(code);
            int idx;

            if (!string.IsNullOrWhiteSpace(Abbreviation))
            {
                code.AppendLine($@"['Abbreviation'] = '{Abbreviation.ToLuaString()}',");
            }
            else
            {
                code.AppendLine($@"['Abbreviation'] = nil,");
            }
        }