コード例 #1
0
ファイル: Character.cs プロジェクト: Eledea/deepspace-engine
        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);
        }
コード例 #2
0
ファイル: Buildable.cs プロジェクト: Eledea/deepspace-engine
 public virtual void OnBuildableCreated(BuildData data)
 {
     DefinitionId = data.Definition; Name = data.Definition.Name; EntityId = data.Id;
     Transform    = new MyEntityTransformComponent(this, data.Position, data.Orientation);
 }