示例#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);
        }
示例#2
0
        public override void OnBuildableCreated(BuildData data)
        {
            base.OnBuildableCreated(data);

            Inventory = new MyEntityInventoryComponent(this, 8, 4);
        }