public string RegisterActionToLua(int indent) { if (constructorInfo == null || constructorInfo.Length == 0) { return(""); } return(CSToLuaRegisterHelper.GetRegisterAction(indent, "CreateInstance", "__call")); }
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()); }
public string RegisterActionToLua(int indent) { return(CSToLuaRegisterHelper.GetRegisterAction(indent, "Method_" + altasName, altasName)); }
public string RegisterActionToLua(int indent) { return(CSToLuaRegisterHelper.GetRegisterAction(indent, GetFunName(fieldType), fieldInfo.Name)); }