Ejemplo n.º 1
0
        public Int32 AddActorComponent <T>(T actorComponent) where T : H1ActorComponent
        {
            Int32 index = H1ActorComponentRegistrator.GetComponentTypeIndex <T>();

            m_ActorComponents.Insert(index, actorComponent);
            return(index);
        }
Ejemplo n.º 2
0
        public T GetActorComponent <T>() where T : H1ActorComponent
        {
            Int32 index = H1ActorComponentRegistrator.GetComponentTypeIndex <T>();

            if (index <= m_ActorComponents.Count)
            {
                return(m_ActorComponents[index] as T);
            }
            return(null);
        }
 public H1StaticMeshComponent()
     : base()
 {
     H1ActorComponentRegistrator.RegisterActorComponent <H1StaticMeshComponent>();
 }
 public H1SkeletalMeshComponent()
     : base()
 {
     H1ActorComponentRegistrator.RegisterActorComponent <H1SkeletalMeshComponent>();
 }