123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- //------------------------------------------------------------
- // Game Framework
- // Copyright © 2013-2021 loyalsoft. All rights reserved.
- // Homepage: http://www.game7000.com/
- // Feedback: http://www.game7000.com/
- //------------------------------------------------------------
- namespace GameFramework.Entity
- {
- internal sealed partial class EntityManager : GameFrameworkModule, IEntityManager
- {
- private sealed class ShowEntityInfo : IReference
- {
- private int m_SerialId;
- private int m_EntityId;
- private EntityGroup m_EntityGroup;
- private object m_UserData;
- public ShowEntityInfo()
- {
- m_SerialId = 0;
- m_EntityId = 0;
- m_EntityGroup = null;
- m_UserData = null;
- }
- public int SerialId
- {
- get
- {
- return m_SerialId;
- }
- }
- public int EntityId
- {
- get
- {
- return m_EntityId;
- }
- }
- public EntityGroup EntityGroup
- {
- get
- {
- return m_EntityGroup;
- }
- }
- public object UserData
- {
- get
- {
- return m_UserData;
- }
- }
- public static ShowEntityInfo Create(int serialId, int entityId, EntityGroup entityGroup, object userData)
- {
- ShowEntityInfo showEntityInfo = ReferencePool.Acquire<ShowEntityInfo>();
- showEntityInfo.m_SerialId = serialId;
- showEntityInfo.m_EntityId = entityId;
- showEntityInfo.m_EntityGroup = entityGroup;
- showEntityInfo.m_UserData = userData;
- return showEntityInfo;
- }
- public void Clear()
- {
- m_SerialId = 0;
- m_EntityId = 0;
- m_EntityGroup = null;
- m_UserData = null;
- }
- }
- }
- }
|