static public int get_m_Vip(IntPtr l) { try { GameFrameworkMessage.GmUserBasic self = (GameFrameworkMessage.GmUserBasic)checkSelf(l); pushValue(l, true); pushValue(l, self.m_Vip); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { GameFrameworkMessage.GmUserBasic o; o = new GameFrameworkMessage.GmUserBasic(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int set_m_Vip(IntPtr l) { try { GameFrameworkMessage.GmUserBasic self = (GameFrameworkMessage.GmUserBasic)checkSelf(l); int v; checkType(l, 2, out v); self.m_Vip = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
private GameFrameworkMessage.GmUserInfo CreateGmUserInfo(TableUserInfo user) { if (null == user) { return(null); } GameFrameworkMessage.GmUserInfo gmUserInfo = new GameFrameworkMessage.GmUserInfo(); gmUserInfo.m_Guid = (ulong)user.Guid; gmUserInfo.m_AccountId = user.AccountId; gmUserInfo.m_Nickname = user.Nickname; gmUserInfo.m_UserState = GameFrameworkMessage.GmStateEnum.Offline; //基础信息 GameFrameworkMessage.GmUserBasic gmUserBasic = new GameFrameworkMessage.GmUserBasic(); gmUserBasic.m_HeroId = user.HeroId; gmUserBasic.m_Level = user.Level; gmUserBasic.m_Money = user.Money; gmUserBasic.m_Gold = user.Gold; gmUserBasic.m_CreateTime = user.CreateTime; gmUserBasic.m_LastLogoutTime = user.LastLogoutTime; gmUserInfo.m_UserBasic = gmUserBasic; return(gmUserInfo); }