Beispiel #1
0
        public LocalPlayer(IWorldLocator worldlocator, IGameObjectsRepository repository)
        {
            this.worldlocator = worldlocator;

            var obj = repository.CreateGameObject();

            RobotPlayerPart = obj.GetComponent <RobotPlayerPart>();
        }
        public PrototypeObjectsFactory(IGameObjectsRepository repository)
        {
            this.repository = repository;

            TubeType = new ItemType()
            {
                Name = "Tube", Mesh = TW.Assets.LoadMesh("SkyMerchant/TubePart/TubePart")
            };
            CogType = new ItemType()
            {
                Name = "Cog", Mesh = TW.Assets.LoadMesh("SkyMerchant/Cogs/Cog01")
            };
            WoodType = new ItemType()
            {
                Name = "Wood", Mesh = UtilityMeshes.CreateMeshWithText(0.4f, "Wood", TW.Graphics)
            };
        }
Beispiel #3
0
 public SimpleWorldLocator(IGameObjectsRepository repository)
 {
     this.repository = repository;
 }
 public RelativePositioningSimulator(IGameObjectsRepository repository)
 {
     this.repository = repository;
 }