Exemple #1
0
        public override bool Run()
        {
            // this class will listen messages about tile processing from ASM engine
            _messageListener = new DemoTileListener(_messageBus, _trace);

            // extensions
            CustomizationService
                 .RegisterBehaviour("terrain_draw", typeof(TerrainDrawBehaviour))
                 .RegisterAtlas("main", TextureAtlasHelper.GeTextureAtlas());

            return true;
        }
Exemple #2
0
        public override bool Run()
        {
            // this class will listen messages about tile processing from ASM engine
            _messageListener = new DemoTileListener(_messageBus, _trace);

            // behaviours
            Container.RegisterInstance(new BehaviourProvider()
                .Register("terrain_modify", typeof(ModifyableTerrainBehaviour))
                .Register("terrain_draw", typeof(TerrainDrawBehaviour))
                .Register("building_modify_facade", typeof(ModifyableFacadeBehaviour))
                .Register("mesh_destroy", typeof(DestroyableMeshBehaviour)));

            return true;
        }