コード例 #1
0
 public string RegisterActionToLua(int indent)
 {
     if (constructorInfo == null || constructorInfo.Length == 0)
     {
         return("");
     }
     return(CSToLuaRegisterHelper.GetRegisterAction(indent, "CreateInstance", "__call"));
 }
コード例 #2
0
        public string RegisterActionToLua(int indent)
        {
            StringBuilder sb = new StringBuilder();

            if (propertyType == CSToLuaPropertyType.Get || propertyType == CSToLuaPropertyType.GetSet)
            {
                sb.Append(CSToLuaRegisterHelper.GetRegisterAction(indent, GetFunName(CSToLuaPropertyType.Get), "get_" + propertyInfo.Name));
            }
            if (propertyType == CSToLuaPropertyType.Set || propertyType == CSToLuaPropertyType.GetSet)
            {
                sb.Append(CSToLuaRegisterHelper.GetRegisterAction(indent, GetFunName(CSToLuaPropertyType.Set), "set_" + propertyInfo.Name));
            }
            return(sb.ToString());
        }
コード例 #3
0
 public string RegisterActionToLua(int indent)
 {
     return(CSToLuaRegisterHelper.GetRegisterAction(indent, "Method_" + altasName, altasName));
 }
コード例 #4
0
 public string RegisterActionToLua(int indent)
 {
     return(CSToLuaRegisterHelper.GetRegisterAction(indent, GetFunName(fieldType), fieldInfo.Name));
 }