public COMDT_PREPARE_GUILD_INFO() { this.stBriefInfo = (COMDT_PREPARE_GUILD_BRIEF_INFO)ProtocolObjectPool.Get(COMDT_PREPARE_GUILD_BRIEF_INFO.CLASS_ID); this.astMemberInfo = new COMDT_GUILD_MEMBER_BRIEF_INFO[20]; for (int i = 0; i < 20; i++) { this.astMemberInfo[i] = (COMDT_GUILD_MEMBER_BRIEF_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MEMBER_BRIEF_INFO.CLASS_ID); } }
public override void OnRelease() { this.bResult = 0; if (this.stPreGuildBriefInfo != null) { this.stPreGuildBriefInfo.Release(); this.stPreGuildBriefInfo = null; } this.bSearchType = 0; }
public override void OnUse() { this.stBriefInfo = (COMDT_PREPARE_GUILD_BRIEF_INFO)ProtocolObjectPool.Get(COMDT_PREPARE_GUILD_BRIEF_INFO.CLASS_ID); if (this.astMemberInfo != null) { for (int i = 0; i < this.astMemberInfo.Length; i++) { this.astMemberInfo[i] = (COMDT_GUILD_MEMBER_BRIEF_INFO)ProtocolObjectPool.Get(COMDT_GUILD_MEMBER_BRIEF_INFO.CLASS_ID); } } }
public override void OnRelease() { if (this.stBriefInfo != null) { this.stBriefInfo.Release(); this.stBriefInfo = null; } 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; } } } }
public SCPKG_SEARCH_PREGUILD_RSP() { this.stPreGuildBriefInfo = (COMDT_PREPARE_GUILD_BRIEF_INFO)ProtocolObjectPool.Get(COMDT_PREPARE_GUILD_BRIEF_INFO.CLASS_ID); }
public override void OnUse() { this.stPreGuildBriefInfo = (COMDT_PREPARE_GUILD_BRIEF_INFO)ProtocolObjectPool.Get(COMDT_PREPARE_GUILD_BRIEF_INFO.CLASS_ID); }