123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //------------------------------------------------------------
- // Game Framework
- // Copyright © 2013-2021 loyalsoft. All rights reserved.
- // Homepage: http://www.game7000.com/
- // Feedback: http://www.game7000.com/
- //------------------------------------------------------------
- using GameFramework;
- using System;
- namespace UnityGameFramework.Runtime
- {
- internal sealed class ShowEntityInfo : IReference
- {
- private Type m_EntityLogicType;
- private object m_UserData;
- public ShowEntityInfo()
- {
- m_EntityLogicType = null;
- m_UserData = null;
- }
- public Type EntityLogicType
- {
- get
- {
- return m_EntityLogicType;
- }
- }
- public object UserData
- {
- get
- {
- return m_UserData;
- }
- }
- public static ShowEntityInfo Create(Type entityLogicType, object userData)
- {
- ShowEntityInfo showEntityInfo = ReferencePool.Acquire<ShowEntityInfo>();
- showEntityInfo.m_EntityLogicType = entityLogicType;
- showEntityInfo.m_UserData = userData;
- return showEntityInfo;
- }
- public void Clear()
- {
- m_EntityLogicType = null;
- m_UserData = null;
- }
- }
- }
|