public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(UnityEngine.UI.Dropdown), L, translator, 0, 8, 8, 8); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "RefreshShownValue", _m_RefreshShownValue); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "AddOptions", _m_AddOptions); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "ClearOptions", _m_ClearOptions); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnSubmit", _m_OnSubmit); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnCancel", _m_OnCancel); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Show", _m_Show); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Hide", _m_Hide); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "template", _g_get_template); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "captionText", _g_get_captionText); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "captionImage", _g_get_captionImage); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "itemText", _g_get_itemText); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "itemImage", _g_get_itemImage); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "options", _g_get_options); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "onValueChanged", _g_get_onValueChanged); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "value", _g_get_value); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "template", _s_set_template); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "captionText", _s_set_captionText); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "captionImage", _s_set_captionImage); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "itemText", _s_set_itemText); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "itemImage", _s_set_itemImage); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "options", _s_set_options); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "onValueChanged", _s_set_onValueChanged); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "value", _s_set_value); XUtils.EndObjectRegister(typeof(UnityEngine.UI.Dropdown), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(UnityEngine.UI.Dropdown), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(UnityEngine.UI.Dropdown)); XUtils.EndClassRegister(typeof(UnityEngine.UI.Dropdown), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.AudioManager), L, translator, 0, 24, 0, 0); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Reset", _m_Reset); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "InitMixer", _m_InitMixer); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetAudioMixerGroup", _m_GetAudioMixerGroup); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "BindAudio", _m_BindAudio); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "StopBattleSFX", _m_StopBattleSFX); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GCTimerUpdate", _m_GCTimerUpdate); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "DestroySFX", _m_DestroySFX); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PlayBattleSFX", _m_PlayBattleSFX); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "LoadSFXAudio", _m_LoadSFXAudio); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PlayAudio", _m_PlayAudio); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "StopAuidoClip", _m_StopAuidoClip); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "StopLoopAudio", _m_StopLoopAudio); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "SetClip", _m_SetClip); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PauseMusic", _m_PauseMusic); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "KillMusic", _m_KillMusic); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "SetMusicVolume", _m_SetMusicVolume); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "TransferMusic", _m_TransferMusic); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "TransferOut", _m_TransferOut); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PauseSFX", _m_PauseSFX); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "SetSFXVolume", _m_SetSFXVolume); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnSelectUI", _m_OnSelectUI); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PlayAudio_dynamic_out", _m_PlayAudio_dynamic_out); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "StopAudio_dynamic", _m_StopAudio_dynamic); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "CheckSFXValid", _m_CheckSFXValid); XUtils.EndObjectRegister(typeof(xc.AudioManager), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.AudioManager), L, __CreateInstance, 2, 0, 0); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetSFXSoundType", _m_GetSFXSoundType_xlua_st_); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.AudioManager)); XUtils.EndClassRegister(typeof(xc.AudioManager), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.NpcDefine), L, translator, 0, 0, 12, 12); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "NpcId", _g_get_NpcId); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ActorId", _g_get_ActorId); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "IdleAni", _g_get_IdleAni); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "LightMode", _g_get_LightMode); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Radius", _g_get_Radius); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ConstTitle", _g_get_ConstTitle); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ConstText", _g_get_ConstText); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ConstBtnText", _g_get_ConstBtnText); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ConstBtnPic", _g_get_ConstBtnPic); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Function", _g_get_Function); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "FunctionParams", _g_get_FunctionParams); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "VoiceIds", _g_get_VoiceIds); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "NpcId", _s_set_NpcId); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ActorId", _s_set_ActorId); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "IdleAni", _s_set_IdleAni); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "LightMode", _s_set_LightMode); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Radius", _s_set_Radius); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ConstTitle", _s_set_ConstTitle); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ConstText", _s_set_ConstText); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ConstBtnText", _s_set_ConstBtnText); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ConstBtnPic", _s_set_ConstBtnPic); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Function", _s_set_Function); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "FunctionParams", _s_set_FunctionParams); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "VoiceIds", _s_set_VoiceIds); XUtils.EndObjectRegister(typeof(xc.NpcDefine), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.NpcDefine), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.NpcDefine)); XUtils.EndClassRegister(typeof(xc.NpcDefine), L, translator); }
private HierarchicalGridWayUIElement createWayElementForElement( HierarchicalUIElementObject inElement) { HierarchicalGridWayUIElement theWayElement = inElement.createWayElement(); if (!theWayElement) { GameObject theWayElementGameObject = Instantiate(_defaultWayElementPrefab); theWayElement = XUtils.verify( theWayElementGameObject.GetComponent <HierarchicalGridWayUIElement>() ); } theWayElement._hierarchicalGridUIObject = this; theWayElement._element = inElement; return(theWayElement); }
public async Task <IActionResult> DoAdmin([FromBody] DoAdminModel model) { // post exist var postId = XUtils.ParseId(model.PostId); var post = await Context.Posts.FirstOrDefaultAsync(p => p.Id == postId); if (post == null) { return(new ApiError(MyErrorCode.IdNotFound, "Post id not found").Wrap()); } // user >= post.Topic.Admin var member = await Context.TopicMembers.FirstOrDefaultAsync(p => p.TopicId == post.TopicId && p.UserId == AuthStore.UserId); if (member == null) { return(new ApiError(MyErrorCode.NotAMember, "You are not a member").Wrap()); } if ((int)member.Role < (int)MemberRole.Admin) { return(new ApiError(MyErrorCode.PermissionDenied, "You should be at least admin").Wrap()); } // ok if (model.Action == AdminAction.IsPinned) { post.SetPinned(model.Status); } if (model.Action == AdminAction.IsEssence) { post.SetEssence(model.Status); } if (model.Action == AdminAction.Remove) { if (model.Status) { Context.Remove(post); } } await Context.GoAsync(); return(Ok()); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.DBInstancePhase.InstancePhaseInfo), L, translator, 0, 1, 12, 11); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetMarkStr", _m_GetMarkStr); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "TargetNum", _g_get_TargetNum); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "CsvId", _g_get_CsvId); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Id", _g_get_Id); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Phase", _g_get_Phase); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Mark1", _g_get_Mark1); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Mark2", _g_get_Mark2); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Mark3", _g_get_Mark3); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Mark4", _g_get_Mark4); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Mark5", _g_get_Mark5); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Desc", _g_get_Desc); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Tips", _g_get_Tips); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "TargetStr", _g_get_TargetStr); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "CsvId", _s_set_CsvId); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Id", _s_set_Id); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Phase", _s_set_Phase); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Mark1", _s_set_Mark1); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Mark2", _s_set_Mark2); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Mark3", _s_set_Mark3); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Mark4", _s_set_Mark4); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Mark5", _s_set_Mark5); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Desc", _s_set_Desc); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Tips", _s_set_Tips); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "TargetStr", _s_set_TargetStr); XUtils.EndObjectRegister(typeof(xc.DBInstancePhase.InstancePhaseInfo), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.DBInstancePhase.InstancePhaseInfo), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.DBInstancePhase.InstancePhaseInfo)); XUtils.EndClassRegister(typeof(xc.DBInstancePhase.InstancePhaseInfo), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.ui.ugui.UIHelper), L, translator, 0, 0, 0, 0); XUtils.EndObjectRegister(typeof(xc.ui.ugui.UIHelper), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.ui.ugui.UIHelper), L, __CreateInstance, 27, 0, 0); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SetRaycastDisable", _m_SetRaycastDisable_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetVector2ByPivot", _m_GetVector2ByPivot_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "FindChildInHierarchy", _m_FindChildInHierarchy_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetSupportBack", _m_GetSupportBack_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "FindChild", _m_FindChild_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "FindAllChildrenInHierarchy_out", _m_FindAllChildrenInHierarchy_out_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetObjectCanvas", _m_GetObjectCanvas_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "IsUniqueWin", _m_IsUniqueWin_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetWindowInitOpenSubWin", _m_GetWindowInitOpenSubWin_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "InstUIObject", _m_InstUIObject_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "CheckWindowIsModalByName", _m_CheckWindowIsModalByName_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetUITypeByWindowName", _m_GetUITypeByWindowName_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "IsBanBackLastPanelByWindowName", _m_IsBanBackLastPanelByWindowName_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "IsBanSubWindowWhenBack", _m_IsBanSubWindowWhenBack_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "InitLoginAllUI", _m_InitLoginAllUI_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "LoadSpriteByBaseWindow", _m_LoadSpriteByBaseWindow_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "LoadMaterialByBaseWindow", _m_LoadMaterialByBaseWindow_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "LoadAudioClipByBaseWindow", _m_LoadAudioClipByBaseWindow_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetLuaWindowPath", _m_GetLuaWindowPath_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetWindowPatchId", _m_GetWindowPatchId_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetDBTextResourceVector", _m_GetDBTextResourceVector_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SetLayer", _m_SetLayer_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetMainUISysBtnBySysId", _m_GetMainUISysBtnBySysId_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "CreateMainUISysBtnBySysId", _m_CreateMainUISysBtnBySysId_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "IsIndependentSysWindow", _m_IsIndependentSysWindow_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SetChildrenActiveExclude", _m_SetChildrenActiveExclude_xlua_st_); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.ui.ugui.UIHelper)); XUtils.EndClassRegister(typeof(xc.ui.ugui.UIHelper), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.AuditManager), L, translator, 0, 8, 7, 7); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "ReadAuditInfo", _m_ReadAuditInfo); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "TestData", _m_TestData); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "AuditAndIOS", _m_AuditAndIOS); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "AddShieldWId", _m_AddShieldWId); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "ContainShieldWId", _m_ContainShieldWId); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "AddShiledSId", _m_AddShiledSId); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "ContainShieldSId", _m_ContainShieldSId); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "FilterSystemWhenAudit", _m_FilterSystemWhenAudit); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Open", _g_get_Open); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "OpenButCanPatch", _g_get_OpenButCanPatch); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ServerUrl", _g_get_ServerUrl); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "AuditVersion", _g_get_AuditVersion); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "official_id", _g_get_official_id); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "audit_id", _g_get_audit_id); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "game_mark", _g_get_game_mark); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Open", _s_set_Open); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "OpenButCanPatch", _s_set_OpenButCanPatch); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ServerUrl", _s_set_ServerUrl); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "AuditVersion", _s_set_AuditVersion); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "official_id", _s_set_official_id); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "audit_id", _s_set_audit_id); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "game_mark", _s_set_game_mark); XUtils.EndObjectRegister(typeof(xc.AuditManager), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.AuditManager), L, __CreateInstance, 1, 1, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.AuditManager)); XUtils.RegisterFunc(L, XUtils.CLS_GETTER_IDX, "Instance", _g_get_Instance); XUtils.EndClassRegister(typeof(xc.AuditManager), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.ControlServerLogHelper), L, translator, 0, 22, 0, 0); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnPostDeviceInitFinished", _m_OnPostDeviceInitFinished); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PostDeviceInit", _m_PostDeviceInit); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PostRoleInfoWithDelay", _m_PostRoleInfoWithDelay); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnPostRoleInfoFinished", _m_OnPostRoleInfoFinished); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PostRoleInfo", _m_PostRoleInfo); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PostStartClientLog", _m_PostStartClientLog); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PostAccountLoginLogS", _m_PostAccountLoginLogS); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnGetPackFinished", _m_OnGetPackFinished); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PostGetPack", _m_PostGetPack); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetFeedbackInfo", _m_GetFeedbackInfo); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnGetFeedbackInfo", _m_OnGetFeedbackInfo); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PostFeedback", _m_PostFeedback); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnFeedback", _m_OnFeedback); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "LoadImage", _m_LoadImage); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "_LoadImage", _m__LoadImage); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PostPlayerFollowRecord", _m_PostPlayerFollowRecord); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetChannelList", _m_GetChannelList); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnGetChannelList", _m_OnGetChannelList); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetChannelName", _m_GetChannelName); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetServerList", _m_GetServerList); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnGetServerList", _m_OnGetServerList); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "PostCloudLadderEventAction", _m_PostCloudLadderEventAction); XUtils.EndObjectRegister(typeof(xc.ControlServerLogHelper), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.ControlServerLogHelper), L, __CreateInstance, 3, 0, 0); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "CreatePkgAccPhoneInfos", _m_CreatePkgAccPhoneInfos_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SendMobileInfo", _m_SendMobileInfo_xlua_st_); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.ControlServerLogHelper)); XUtils.EndClassRegister(typeof(xc.ControlServerLogHelper), L, translator); }
//-CrewMember API internal void constructionStep(float inBuildPoints) { if (!XUtils.isValid(gameObject)) { return; } _buildPoints.changeValue(inBuildPoints); if (!_buildPoints.isValueMaximum()) { return; } createBuilding(); XUtils.Destroy(gameObject); }
//-Implementation void Update() { _uiAttaches_toWorldObjectAttachPoint.iterateWithRemove( (UIAttach_ToWorldObjectAttachPoint inAttach) => { if (!inAttach.isValid()) { if (XUtils.isValid(inAttach.UITransform)) { Destroy(inAttach.UITransform.gameObject); } return(true); } updateToWorldObjectAttachPoint(ref inAttach); return(false); }); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(UnityEngine.WWW), L, translator, 0, 4, 14, 1); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "LoadImageIntoTexture", _m_LoadImageIntoTexture); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Dispose", _m_Dispose); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetAudioClip", _m_GetAudioClip); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetAudioClipCompressed", _m_GetAudioClipCompressed); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "assetBundle", _g_get_assetBundle); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "bytes", _g_get_bytes); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "bytesDownloaded", _g_get_bytesDownloaded); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "error", _g_get_error); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "isDone", _g_get_isDone); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "progress", _g_get_progress); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "responseHeaders", _g_get_responseHeaders); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "text", _g_get_text); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "texture", _g_get_texture); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "textureNonReadable", _g_get_textureNonReadable); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "threadPriority", _g_get_threadPriority); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "uploadProgress", _g_get_uploadProgress); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "url", _g_get_url); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "threadPriority", _s_set_threadPriority); XUtils.EndObjectRegister(typeof(UnityEngine.WWW), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(UnityEngine.WWW), L, __CreateInstance, 4, 0, 0); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "EscapeURL", _m_EscapeURL_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "UnEscapeURL", _m_UnEscapeURL_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "LoadFromCacheOrDownload", _m_LoadFromCacheOrDownload_xlua_st_); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(UnityEngine.WWW)); XUtils.EndClassRegister(typeof(UnityEngine.WWW), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.SysConfigManager), L, translator, 0, 18, 2, 2); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "RegisterAllMessages", _m_RegisterAllMessages); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Reset", _m_Reset); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OpenSys", _m_OpenSys); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetAllOpenSysList", _m_GetAllOpenSysList); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetAllWaitingSysList", _m_GetAllWaitingSysList); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetSysConfigById", _m_GetSysConfigById); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "CheckSysHasOpened", _m_CheckSysHasOpened); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "CheckSysHasOpenIgnoreActivity", _m_CheckSysHasOpenIgnoreActivity); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "CheckSysHasDownloaded", _m_CheckSysHasDownloaded); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "IsWaiting", _m_IsWaiting); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "IsSysOpened", _m_IsSysOpened); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetWaittingSysConfig", _m_GetWaittingSysConfig); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "MarkRedSpotById", _m_MarkRedSpotById); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetFirstOpenSysByPos", _m_GetFirstOpenSysByPos); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "ForceOpenSys", _m_ForceOpenSys); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "ForceCloseSys", _m_ForceCloseSys); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "HandleNotifySysOpen", _m_HandleNotifySysOpen); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "HandleNotifySysClose", _m_HandleNotifySysClose); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "SkipSysOpen", _g_get_SkipSysOpen); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "AutoExpandLeft", _g_get_AutoExpandLeft); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "SkipSysOpen", _s_set_SkipSysOpen); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "AutoExpandLeft", _s_set_AutoExpandLeft); XUtils.EndObjectRegister(typeof(xc.SysConfigManager), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.SysConfigManager), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.SysConfigManager)); XUtils.EndClassRegister(typeof(xc.SysConfigManager), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(UnityEngine.GameObject), L, translator, 0, 10, 6, 2); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "IsDestroyed", _m_IsDestroyed); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetComponent", _m_GetComponent); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetComponentInChildren", _m_GetComponentInChildren); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetComponentInParent", _m_GetComponentInParent); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetComponents", _m_GetComponents); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetComponentsInChildren", _m_GetComponentsInChildren); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetComponentsInParent", _m_GetComponentsInParent); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "SetActive", _m_SetActive); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "CompareTag", _m_CompareTag); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "AddComponent", _m_AddComponent); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "transform", _g_get_transform); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "layer", _g_get_layer); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "activeSelf", _g_get_activeSelf); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "activeInHierarchy", _g_get_activeInHierarchy); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "tag", _g_get_tag); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "gameObject", _g_get_gameObject); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "layer", _s_set_layer); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "tag", _s_set_tag); XUtils.EndObjectRegister(typeof(UnityEngine.GameObject), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(UnityEngine.GameObject), L, __CreateInstance, 5, 0, 0); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "FindGameObjectWithTag", _m_FindGameObjectWithTag_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "FindWithTag", _m_FindWithTag_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "FindGameObjectsWithTag", _m_FindGameObjectsWithTag_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "Find", _m_Find_xlua_st_); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(UnityEngine.GameObject)); XUtils.EndClassRegister(typeof(UnityEngine.GameObject), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(UnityEngine.Sprite), L, translator, 0, 5, 15, 0); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OverrideGeometry", _m_OverrideGeometry); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetPhysicsShapeCount", _m_GetPhysicsShapeCount); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetPhysicsShapePointCount", _m_GetPhysicsShapePointCount); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetPhysicsShape", _m_GetPhysicsShape); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OverridePhysicsShape", _m_OverridePhysicsShape); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "bounds", _g_get_bounds); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "rect", _g_get_rect); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "texture", _g_get_texture); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "associatedAlphaSplitTexture", _g_get_associatedAlphaSplitTexture); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "textureRect", _g_get_textureRect); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "textureRectOffset", _g_get_textureRectOffset); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "packed", _g_get_packed); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "packingMode", _g_get_packingMode); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "packingRotation", _g_get_packingRotation); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "pivot", _g_get_pivot); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "border", _g_get_border); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "vertices", _g_get_vertices); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "triangles", _g_get_triangles); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "uv", _g_get_uv); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "pixelsPerUnit", _g_get_pixelsPerUnit); XUtils.EndObjectRegister(typeof(UnityEngine.Sprite), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(UnityEngine.Sprite), L, __CreateInstance, 2, 0, 0); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "Create", _m_Create_xlua_st_); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(UnityEngine.Sprite)); XUtils.EndClassRegister(typeof(UnityEngine.Sprite), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.EquipModData), L, translator, 0, 1, 18, 2); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "CompareTo", _m_CompareTo); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "IsWeapon", _g_get_IsWeapon); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Id", _g_get_Id); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Pos", _g_get_Pos); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ModelId", _g_get_ModelId); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "LegendCount", _g_get_LegendCount); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "NeedARCON", _g_get_NeedARCON); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "NeedARSTR", _g_get_NeedARSTR); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "NeedARAGI", _g_get_NeedARAGI); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "NeedARINT", _g_get_NeedARINT); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "LvStep", _g_get_LvStep); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "StrengthMax", _g_get_StrengthMax); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "SuitId", _g_get_SuitId); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "PetExp", _g_get_PetExp); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "DefaultStar", _g_get_DefaultStar); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "DefaultExtraDesc", _g_get_DefaultExtraDesc); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "CanIdentify", _g_get_CanIdentify); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "DefaultScore", _g_get_DefaultScore); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "LegendAttrs", _g_get_LegendAttrs); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "DefaultScore", _s_set_DefaultScore); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "LegendAttrs", _s_set_LegendAttrs); XUtils.EndObjectRegister(typeof(xc.EquipModData), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.EquipModData), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.EquipModData)); XUtils.EndClassRegister(typeof(xc.EquipModData), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(EmojiText), L, translator, 0, 5, 8, 5); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "setClip", _m_setClip); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetPreferredWidth", _m_GetPreferredWidth); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetPreferredHeight", _m_GetPreferredHeight); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnTextChange", _m_OnTextChange); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "OrginText", _g_get_OrginText); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "OutlineEffectColor", _g_get_OutlineEffectColor); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "OutlineEffectDistance", _g_get_OutlineEffectDistance); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "text", _g_get_text); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "onClickHref", _g_get_onClickHref); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "outline", _g_get_outline); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "OutlineEffectColor", _s_set_OutlineEffectColor); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "OutlineEffectDistance", _s_set_OutlineEffectDistance); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "text", _s_set_text); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "onClickHref", _s_set_onClickHref); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "outline", _s_set_outline); XUtils.EndObjectRegister(typeof(EmojiText), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(EmojiText), L, __CreateInstance, 4, 0, 0); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetEmojiTextName", _m_GetEmojiTextName_xlua_st_); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "no_breaking_space", EmojiText.no_breaking_space); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "hrefMatcher", EmojiText.hrefMatcher); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(EmojiText)); XUtils.EndClassRegister(typeof(EmojiText), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.Buff), L, translator, 0, 6, 8, 2); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Update", _m_Update); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Reset", _m_Reset); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "ResetTime", _m_ResetTime); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Delete", _m_Delete); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "SetOverlayNum", _m_SetOverlayNum); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetOverlayNum", _m_GetOverlayNum); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Target_P", _g_get_Target_P); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Progress", _g_get_Progress); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "RemainTime", _g_get_RemainTime); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "OwnBuffInfo", _g_get_OwnBuffInfo); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "HasActive", _g_get_HasActive); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "NeedDel", _g_get_NeedDel); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "m_BuffId", _g_get_m_BuffId); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ShiftExcept", _g_get_ShiftExcept); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "m_BuffId", _s_set_m_BuffId); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ShiftExcept", _s_set_ShiftExcept); XUtils.EndObjectRegister(typeof(xc.Buff), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.Buff), L, __CreateInstance, 3, 1, 1); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetBattleState", _m_GetBattleState_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "Construct", _m_Construct_xlua_st_); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.Buff)); XUtils.RegisterFunc(L, XUtils.CLS_GETTER_IDX, "BattleStateCount", _g_get_BattleStateCount); XUtils.RegisterFunc(L, XUtils.CLS_SETTER_IDX, "BattleStateCount", _s_set_BattleStateCount); XUtils.EndClassRegister(typeof(xc.Buff), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(UIPreviewModel), L, translator, 0, 4, 8, 8); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "SetGameObject", _m_SetGameObject); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "UpdateQueue", _m_UpdateQueue); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "SetEffectVisiable", _m_SetEffectVisiable); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Destroy", _m_Destroy); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mGameObject", _g_get_mGameObject); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ModelLocalEulerAngles", _g_get_ModelLocalEulerAngles); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ModelLocalPosition", _g_get_ModelLocalPosition); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ModelLocalScale", _g_get_ModelLocalScale); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ModelParentLocalEulerAngles", _g_get_ModelParentLocalEulerAngles); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ModelParentLocalPos", _g_get_ModelParentLocalPos); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "m_FixedTouchTransform", _g_get_m_FixedTouchTransform); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "CanRotate", _g_get_CanRotate); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mGameObject", _s_set_mGameObject); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ModelLocalEulerAngles", _s_set_ModelLocalEulerAngles); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ModelLocalPosition", _s_set_ModelLocalPosition); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ModelLocalScale", _s_set_ModelLocalScale); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ModelParentLocalEulerAngles", _s_set_ModelParentLocalEulerAngles); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ModelParentLocalPos", _s_set_ModelParentLocalPos); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "m_FixedTouchTransform", _s_set_m_FixedTouchTransform); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "CanRotate", _s_set_CanRotate); XUtils.EndObjectRegister(typeof(UIPreviewModel), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(UIPreviewModel), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(UIPreviewModel)); XUtils.EndClassRegister(typeof(UIPreviewModel), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.DBReward.RewardInfo), L, translator, 0, 0, 10, 10); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mItemID", _g_get_mItemID); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mGID", _g_get_mGID); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mFixedNum", _g_get_mFixedNum); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mNum", _g_get_mNum); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mVocation", _g_get_mVocation); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mEffectByLevel", _g_get_mEffectByLevel); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mIsBind", _g_get_mIsBind); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mLvLimit", _g_get_mLvLimit); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mOpenSysId", _g_get_mOpenSysId); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "mShowColorEffect2", _g_get_mShowColorEffect2); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mItemID", _s_set_mItemID); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mGID", _s_set_mGID); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mFixedNum", _s_set_mFixedNum); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mNum", _s_set_mNum); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mVocation", _s_set_mVocation); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mEffectByLevel", _s_set_mEffectByLevel); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mIsBind", _s_set_mIsBind); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mLvLimit", _s_set_mLvLimit); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mOpenSysId", _s_set_mOpenSysId); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "mShowColorEffect2", _s_set_mShowColorEffect2); XUtils.EndObjectRegister(typeof(xc.DBReward.RewardInfo), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.DBReward.RewardInfo), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.DBReward.RewardInfo)); XUtils.EndClassRegister(typeof(xc.DBReward.RewardInfo), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.DBGuildSkill.DBGuildSkillItem), L, translator, 0, 0, 10, 10); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "SkillId", _g_get_SkillId); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Name", _g_get_Name); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Level", _g_get_Level); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "OpenLv", _g_get_OpenLv); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "OpenCost", _g_get_OpenCost); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "LvUpCost", _g_get_LvUpCost); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "AttrArray", _g_get_AttrArray); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Icon", _g_get_Icon); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "CurAttrId", _g_get_CurAttrId); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "CurShowAttrArray", _g_get_CurShowAttrArray); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "SkillId", _s_set_SkillId); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Name", _s_set_Name); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Level", _s_set_Level); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "OpenLv", _s_set_OpenLv); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "OpenCost", _s_set_OpenCost); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "LvUpCost", _s_set_LvUpCost); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "AttrArray", _s_set_AttrArray); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Icon", _s_set_Icon); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "CurAttrId", _s_set_CurAttrId); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "CurShowAttrArray", _s_set_CurShowAttrArray); XUtils.EndObjectRegister(typeof(xc.DBGuildSkill.DBGuildSkillItem), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.DBGuildSkill.DBGuildSkillItem), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.DBGuildSkill.DBGuildSkillItem)); XUtils.EndClassRegister(typeof(xc.DBGuildSkill.DBGuildSkillItem), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.BuffCtrl), L, translator, 0, 15, 2, 0); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetBuff", _m_GetBuff); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Destroy", _m_Destroy); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "AddBuff", _m_AddBuff); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "DelBuff", _m_DelBuff); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "HasActive", _m_HasActive); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "DelBattleStatus", _m_DelBattleStatus); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Update", _m_Update); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "AddBuff_out", _m_AddBuff_out); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "DelAllBuff", _m_DelAllBuff); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "SetBuffLayer", _m_SetBuffLayer); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetBuffLayer", _m_GetBuffLayer); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "AddEffectObj", _m_AddEffectObj); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "DestroyEffectObj", _m_DestroyEffectObj); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "ResetAllEffectObj", _m_ResetAllEffectObj); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "AddBuffWord", _m_AddBuffWord); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "AllBuffs", _g_get_AllBuffs); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "SortBuffs", _g_get_SortBuffs); XUtils.EndObjectRegister(typeof(xc.BuffCtrl), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.BuffCtrl), L, __CreateInstance, 4, 0, 0); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "RegisterAllMessage", _m_RegisterAllMessage_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "HandleNotifyAddBuff", _m_HandleNotifyAddBuff_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "HandleNotifyDeleteBuff", _m_HandleNotifyDeleteBuff_xlua_st_); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.BuffCtrl)); XUtils.EndClassRegister(typeof(xc.BuffCtrl), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.VoiceControlComponent), L, translator, 0, 8, 6, 6); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Start", _m_Start); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnDestroy", _m_OnDestroy); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnDisable", _m_OnDisable); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnPointerUp", _m_OnPointerUp); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnPointerEnter", _m_OnPointerEnter); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnPointerExit", _m_OnPointerExit); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "OnApplicationPause", _m_OnApplicationPause); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Tag", _g_get_Tag); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "DelayTime", _g_get_DelayTime); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "RecordMaxTime", _g_get_RecordMaxTime); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "RecordMinTime", _g_get_RecordMinTime); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Intevel", _g_get_Intevel); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "OnClickFunc", _g_get_OnClickFunc); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Tag", _s_set_Tag); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "DelayTime", _s_set_DelayTime); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "RecordMaxTime", _s_set_RecordMaxTime); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "RecordMinTime", _s_set_RecordMinTime); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Intevel", _s_set_Intevel); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "OnClickFunc", _s_set_OnClickFunc); XUtils.EndObjectRegister(typeof(xc.VoiceControlComponent), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.VoiceControlComponent), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.VoiceControlComponent)); XUtils.EndClassRegister(typeof(xc.VoiceControlComponent), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.SubmitEvent), L, translator, 0, 0, 0, 0); XUtils.EndObjectRegister(typeof(UnityEngine.UI.InputField.SubmitEvent), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(UnityEngine.UI.InputField.SubmitEvent), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(UnityEngine.UI.InputField.SubmitEvent)); XUtils.EndClassRegister(typeof(UnityEngine.UI.InputField.SubmitEvent), L, translator); }
//--Shoot implementation private void performShootFromPoint(GameObject inShootingPoint) { Vector2 theRocketPosition = new Vector2(); float theRocketRotation = 0.0f; XMath.getFromTransform( ref theRocketPosition, ref theRocketRotation, inShootingPoint ); RocketProjectileObject theRocket = XUtils.createObject(_projectilePrefab); theRocket.init(XUtils.verify(_owner)); theRocket.transform.position = theRocketPosition; Vector3 theRotation = theRocket.transform.rotation.eulerAngles; theRotation.z = theRocketRotation; theRocket.transform.eulerAngles = theRotation; }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(BatteryUpdate), L, translator, 0, 0, 0, 0); XUtils.EndObjectRegister(typeof(BatteryUpdate), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(BatteryUpdate), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(BatteryUpdate)); XUtils.EndClassRegister(typeof(BatteryUpdate), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.DBManager), L, translator, 0, 12, 4, 0); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetDB", _m_GetDB); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "RegisterDB", _m_RegisterDB); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Load", _m_Load); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "Unload", _m_Unload); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "LoadDBFile", _m_LoadDBFile); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "LoadAllDBAsset", _m_LoadAllDBAsset); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetColumnInfo", _m_GetColumnInfo); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "SetColumnInfo", _m_SetColumnInfo); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetSqliteCache", _m_GetSqliteCache); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "QuerySqliteRow", _m_QuerySqliteRow); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "CloseAllSqliteDB", _m_CloseAllSqliteDB); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "ClearCache", _m_ClearCache); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "DBBundle", _g_get_DBBundle); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "LatestVbn", _g_get_LatestVbn); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "CurProcess", _g_get_CurProcess); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "IsLoadAllFinished", _g_get_IsLoadAllFinished); XUtils.EndObjectRegister(typeof(xc.DBManager), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.DBManager), L, __CreateInstance, 2, 1, 1); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "CharIndexTable", xc.DBManager.CharIndexTable); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.DBManager)); XUtils.RegisterFunc(L, XUtils.CLS_GETTER_IDX, "AssetsResPath", _g_get_AssetsResPath); XUtils.RegisterFunc(L, XUtils.CLS_SETTER_IDX, "AssetsResPath", _s_set_AssetsResPath); XUtils.EndClassRegister(typeof(xc.DBManager), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.DefaultActorAttribute), L, translator, 0, 3, 9, 7); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetEquipScore", _m_GetEquipScore); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetEquipStrengthScore", _m_GetEquipStrengthScore); XUtils.RegisterFunc(L, XUtils.METHOD_IDX, "GetEquipBaptizeScore", _m_GetEquipBaptizeScore); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Id", _g_get_Id); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Value", _g_get_Value); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "OrigName", _g_get_OrigName); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "ValuesFormat", _g_get_ValuesFormat); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "NameShow", _g_get_NameShow); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "IsMiddleDes", _g_get_IsMiddleDes); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Name", _g_get_Name); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Desc", _g_get_Desc); XUtils.RegisterFunc(L, XUtils.GETTER_IDX, "Score", _g_get_Score); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Id", _s_set_Id); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Value", _s_set_Value); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "OrigName", _s_set_OrigName); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "ValuesFormat", _s_set_ValuesFormat); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Name", _s_set_Name); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Desc", _s_set_Desc); XUtils.RegisterFunc(L, XUtils.SETTER_IDX, "Score", _s_set_Score); XUtils.EndObjectRegister(typeof(xc.DefaultActorAttribute), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.DefaultActorAttribute), L, __CreateInstance, 1, 0, 0); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.DefaultActorAttribute)); XUtils.EndClassRegister(typeof(xc.DefaultActorAttribute), L, translator); }
public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XUtils.BeginObjectRegister(typeof(xc.CommonTool), L, translator, 0, 0, 0, 0); XUtils.EndObjectRegister(typeof(xc.CommonTool), L, translator, null, null, null, null, null); XUtils.BeginClassRegister(typeof(xc.CommonTool), L, __CreateInstance, 22, 0, 0); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "BytesToUtf8", _m_BytesToUtf8_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetWordLenByRule", _m_GetWordLenByRule_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetMD5", _m_GetMD5_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetFileMD5", _m_GetFileMD5_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "CreateChildGameObject", _m_CreateChildGameObject_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "FindChildInHierarchy", _m_FindChildInHierarchy_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "DestroyObjectImmediate", _m_DestroyObjectImmediate_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetDayOfWeekString", _m_GetDayOfWeekString_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "ColorToHex", _m_ColorToHex_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "HexToColor", _m_HexToColor_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SecondsToStr", _m_SecondsToStr_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SecondsToStr_2", _m_SecondsToStr_2_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SecondsToStr_3", _m_SecondsToStr_3_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SecondsToStr_4", _m_SecondsToStr_4_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SecondsToStr_showAllTime", _m_SecondsToStr_showAllTime_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SetChildLayer", _m_SetChildLayer_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "SetActive", _m_SetActive_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "RemoveAllChildrenExcept", _m_RemoveAllChildrenExcept_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "GetCurTimeStamp", _m_GetCurTimeStamp_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "WipeFileSprit", _m_WipeFileSprit_xlua_st_); XUtils.RegisterFunc(L, XUtils.CLS_IDX, "ParsePrice", _m_ParsePrice_xlua_st_); XUtils.RegisterObject(L, translator, XUtils.CLS_IDX, "UnderlyingSystemType", typeof(xc.CommonTool)); XUtils.EndClassRegister(typeof(xc.CommonTool), L, translator); }
public static void UnPack(ObjectTranslator translator, RealStatePtr L, int idx, out UnityEngine.Ray2D val) { val = new UnityEngine.Ray2D(); int top = LuaAPI.lua_gettop(L); if (XUtils.LoadField(L, idx, "origin")) { var origin = val.origin; translator.Get(L, top + 1, out origin); val.origin = origin; } LuaAPI.lua_pop(L, 1); if (XUtils.LoadField(L, idx, "direction")) { var direction = val.direction; translator.Get(L, top + 1, out direction); val.direction = direction; } LuaAPI.lua_pop(L, 1); }