Beispiel #1
0
        /// <summary>
        /// Creates a game object and adds it to the referenced entity manager.
        /// </summary>
        ///
        public Entity()
        {
            EntityManager.Add(this);

            Components = new List <Component.Component>();

            Transform = new Component.Transform(this);
            AddComponent(Transform);
        }
Beispiel #2
0
 /// <summary>
 /// Create a GridTransform within a master Transform component.
 /// </summary>
 /// <param name="masterTransform">The master Transform component.</param>
 public GridTransform(Transform masterTransform)
 {
     this.masterTransform = masterTransform;
 }
Beispiel #3
0
 /// <summary>
 /// Create a WorldTransform within a master Transform component.
 /// </summary>
 /// <param name="masterTransform">The master Transform component.</param>
 public WorldTransform(Transform masterTransform)
 {
     this.masterTransform = masterTransform;
 }