Esempio n. 1
0
        public Character(Player player, string name, long id, Vector3D position, Quaternion rotation)
        {
            m_player = player;

            Name     = name;
            EntityId = id;

            Transform = new MyEntityTransformComponent(this, position, rotation);
            Inventory = new MyEntityInventoryComponent(this, 4, 4);
        }
Esempio n. 2
0
 public virtual void OnBuildableCreated(BuildData data)
 {
     DefinitionId = data.Definition; Name = data.Definition.Name; EntityId = data.Id;
     Transform    = new MyEntityTransformComponent(this, data.Position, data.Orientation);
 }