Ejemplo n.º 1
0
        public static void ShowTestEntity2(this EntityComponent entityComponent, TestEntity2Data data)
        {
            Trinity.HotfixEntityData tData = GameFramework.ReferencePool.Acquire <Trinity.HotfixEntityData>();
            tData.Fill(data.Id, data.TypeId, "TestEntity2", data);
            tData.Position = data.Position;
            tData.Rotation = data.Rotation;

            entityComponent.ShowHotfixEntity(0, tData);
        }
Ejemplo n.º 2
0
 public override void OnShow(object userData)
 {
     base.OnShow(userData);
     m_TestEntity2Data = (TestEntity2Data)userData;
 }
Ejemplo n.º 3
0
        public static async Task <Entity> AwaitShowTestEntity2(this EntityComponent entityComponent, TestEntity2Data data)
        {
            Trinity.HotfixEntityData tData = GameFramework.ReferencePool.Acquire <Trinity.HotfixEntityData>();
            tData.Fill(data.Id, data.TypeId, "TestEntity2", data);
            tData.Position = data.Position;
            tData.Rotation = data.Rotation;

            Entity entity = await entityComponent.AwaitShowHotfixEntity(0, tData);

            return(entity);
        }