public void RequestDeleteRole(int id) { CTS_DeleteRole cts_update = new CTS_DeleteRole(); cts_update.MUserId = id; GameNet.MInstance.SendMsg(CTS_DeleteRole.MProtoId, cts_update); }
private void OnDeleteRole(object data) { ProtocolData pdata = data as ProtocolData; CTS_DeleteRole cts = pdata.MData as CTS_DeleteRole; bool res = UserMgr.MInstance.DeleteUserInfo(cts.MUserId);; STC_DeleteRole stc_update = new STC_DeleteRole(); stc_update.Res = res; ServerNet.MInstance.SendMsg(pdata.MIpEndPoint, STC_DeleteRole.MProtoId, stc_update); }