public COMDT_GUILD_INFO() { this.stBriefInfo = (COMDT_GUILD_BRIEF_INFO)ProtocolObjectPool.Get(COMDT_GUILD_BRIEF_INFO.CLASS_ID); this.astMemberInfo = new COMDT_GUILD_MEMBER_INFO[150]; for (int i = 0; i < 150; i++) { this.astMemberInfo[i] = (COMDT_GUILD_MEMBER_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MEMBER_INFO.CLASS_ID); } this.astBuildingInfo = new COMDT_GUILD_BUILDING[10]; for (int j = 0; j < 10; j++) { this.astBuildingInfo[j] = (COMDT_GUILD_BUILDING)ProtocolObjectPool.Get(COMDT_GUILD_BUILDING.CLASS_ID); } this.astSelfRecommendInfo = new COMDT_SELF_RECOMMEND_INFO[2]; for (int k = 0; k < 2; k++) { this.astSelfRecommendInfo[k] = (COMDT_SELF_RECOMMEND_INFO)ProtocolObjectPool.Get(COMDT_SELF_RECOMMEND_INFO.CLASS_ID); } this.stRankInfo = (COMDT_GUILD_RANK_INFO)ProtocolObjectPool.Get(COMDT_GUILD_RANK_INFO.CLASS_ID); this.szGroupOpenID = new byte[128]; this.stGuildMatchInfo = (COMDT_GUILD_MATCH_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MATCH_INFO.CLASS_ID); this.astGuildMatchOBInfo = new COMDT_GUILD_MATCH_OB_INFO[10]; for (int l = 0; l < 10; l++) { this.astGuildMatchOBInfo[l] = (COMDT_GUILD_MATCH_OB_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MATCH_OB_INFO.CLASS_ID); } }
public override void OnUse() { this.stBriefInfo = (COMDT_GUILD_BRIEF_INFO)ProtocolObjectPool.Get(COMDT_GUILD_BRIEF_INFO.CLASS_ID); if (this.astMemberInfo != null) { for (int i = 0; i < this.astMemberInfo.Length; i++) { this.astMemberInfo[i] = (COMDT_GUILD_MEMBER_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MEMBER_INFO.CLASS_ID); } } if (this.astBuildingInfo != null) { for (int j = 0; j < this.astBuildingInfo.Length; j++) { this.astBuildingInfo[j] = (COMDT_GUILD_BUILDING)ProtocolObjectPool.Get(COMDT_GUILD_BUILDING.CLASS_ID); } } if (this.astSelfRecommendInfo != null) { for (int k = 0; k < this.astSelfRecommendInfo.Length; k++) { this.astSelfRecommendInfo[k] = (COMDT_SELF_RECOMMEND_INFO)ProtocolObjectPool.Get(COMDT_SELF_RECOMMEND_INFO.CLASS_ID); } } this.stRankInfo = (COMDT_GUILD_RANK_INFO)ProtocolObjectPool.Get(COMDT_GUILD_RANK_INFO.CLASS_ID); this.stGuildMatchInfo = (COMDT_GUILD_MATCH_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MATCH_INFO.CLASS_ID); if (this.astGuildMatchOBInfo != null) { for (int l = 0; l < this.astGuildMatchOBInfo.Length; l++) { this.astGuildMatchOBInfo[l] = (COMDT_GUILD_MATCH_OB_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MATCH_OB_INFO.CLASS_ID); } } }
public COMDT_GUILD_INFO() { this.stBriefInfo = (COMDT_GUILD_BRIEF_INFO)ProtocolObjectPool.Get(COMDT_GUILD_BRIEF_INFO.CLASS_ID); this.astMemberInfo = new COMDT_GUILD_MEMBER_INFO[150]; for (int i = 0; i < 150; i++) { this.astMemberInfo[i] = (COMDT_GUILD_MEMBER_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MEMBER_INFO.CLASS_ID); } this.stRankInfo = (COMDT_GUILD_RANK_INFO)ProtocolObjectPool.Get(COMDT_GUILD_RANK_INFO.CLASS_ID); this.szGroupOpenID = new byte[128]; this.stGuildMatchInfo = (COMDT_GUILD_MATCH_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MATCH_INFO.CLASS_ID); this.astGuildMatchOBInfo = new COMDT_GUILD_MATCH_OB_INFO[10]; for (int j = 0; j < 10; j++) { this.astGuildMatchOBInfo[j] = (COMDT_GUILD_MATCH_OB_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MATCH_OB_INFO.CLASS_ID); } }
public override void OnRelease() { if (this.stBriefInfo != null) { this.stBriefInfo.Release(); this.stBriefInfo = null; } this.ullBuildTime = 0uL; this.dwMaintainTime = 0u; if (this.astMemberInfo != null) { for (int i = 0; i < this.astMemberInfo.Length; i++) { if (this.astMemberInfo[i] != null) { this.astMemberInfo[i].Release(); this.astMemberInfo[i] = null; } } } if (this.stRankInfo != null) { this.stRankInfo.Release(); this.stRankInfo = null; } this.dwChangeNameCnt = 0u; this.dwStar = 0u; this.dwGroupGuildID = 0u; if (this.stGuildMatchInfo != null) { this.stGuildMatchInfo.Release(); this.stGuildMatchInfo = null; } this.bOBMatchCnt = 0; if (this.astGuildMatchOBInfo != null) { for (int j = 0; j < this.astGuildMatchOBInfo.Length; j++) { if (this.astGuildMatchOBInfo[j] != null) { this.astGuildMatchOBInfo[j].Release(); this.astGuildMatchOBInfo[j] = null; } } } }
public override void OnUse() { this.stBriefInfo = (COMDT_GUILD_BRIEF_INFO)ProtocolObjectPool.Get(COMDT_GUILD_BRIEF_INFO.CLASS_ID); if (this.astMemberInfo != null) { for (int i = 0; i < this.astMemberInfo.Length; i++) { this.astMemberInfo[i] = (COMDT_GUILD_MEMBER_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MEMBER_INFO.CLASS_ID); } } this.stRankInfo = (COMDT_GUILD_RANK_INFO)ProtocolObjectPool.Get(COMDT_GUILD_RANK_INFO.CLASS_ID); this.stGuildMatchInfo = (COMDT_GUILD_MATCH_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MATCH_INFO.CLASS_ID); if (this.astGuildMatchOBInfo != null) { for (int j = 0; j < this.astGuildMatchOBInfo.Length; j++) { this.astGuildMatchOBInfo[j] = (COMDT_GUILD_MATCH_OB_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MATCH_OB_INFO.CLASS_ID); } } }
public override void OnRelease() { if (this.stBriefInfo != null) { this.stBriefInfo.Release(); this.stBriefInfo = null; } this.ullBuildTime = 0uL; this.dwGuildMoney = 0u; this.dwActive = 0u; this.dwCoinPool = 0u; this.dwMaintainTime = 0u; this.dwElectionTime = 0u; if (this.astMemberInfo != null) { for (int i = 0; i < this.astMemberInfo.Length; i++) { if (this.astMemberInfo[i] != null) { this.astMemberInfo[i].Release(); this.astMemberInfo[i] = null; } } } this.bBuildingCnt = 0; if (this.astBuildingInfo != null) { for (int j = 0; j < this.astBuildingInfo.Length; j++) { if (this.astBuildingInfo[j] != null) { this.astBuildingInfo[j].Release(); this.astBuildingInfo[j] = null; } } } this.bSelfRecommendCnt = 0; if (this.astSelfRecommendInfo != null) { for (int k = 0; k < this.astSelfRecommendInfo.Length; k++) { if (this.astSelfRecommendInfo[k] != null) { this.astSelfRecommendInfo[k].Release(); this.astSelfRecommendInfo[k] = null; } } } if (this.stRankInfo != null) { this.stRankInfo.Release(); this.stRankInfo = null; } this.dwChangeNameCnt = 0u; this.dwStar = 0u; this.dwGroupGuildID = 0u; if (this.stGuildMatchInfo != null) { this.stGuildMatchInfo.Release(); this.stGuildMatchInfo = null; } this.bOBMatchCnt = 0; if (this.astGuildMatchOBInfo != null) { for (int l = 0; l < this.astGuildMatchOBInfo.Length; l++) { if (this.astGuildMatchOBInfo[l] != null) { this.astGuildMatchOBInfo[l].Release(); this.astGuildMatchOBInfo[l] = null; } } } }