Example #1
0
        public void RemoveBuildObjRequest(int _buldId, int _idTask)
        {
            NWBuildTask task = new NWBuildTask();

            task.progress = 0.0f;
            task.Id       = _idTask;
            task.BuildId  = _buldId;

            NWGameCommand com = new NWGameCommand();

            com.GameCommandType = GameCommandType.RemoveBuildTask;
            com.BuildTasks      = new NWBuildTask[1] {
                task
            };

            gameControllers.ServerSimulator.AddCommand(com);
        }
Example #2
0
        public void CreateRobotRequest(int _buldId)
        {
            NWBuildTask task = new NWBuildTask();

            task.progress = 0.0f;
            task.Id       = 0;
            task.BuildId  = _buldId;

            NWGameCommand com = new NWGameCommand();

            com.GameCommandType = GameCommandType.AddBuildTask;
            com.BuildTasks      = new NWBuildTask[1] {
                task
            };

            gameControllers.ServerSimulator.AddCommand(com);
        }
Example #3
0
        public void CreateTurretRequest(int _buldId, int idPlatform, TurretType _turretType)
        {
            NWBuildTask task = new NWBuildTask();

            task.progress         = 0.0f;
            task.Id               = 0;
            task.BuildId          = _buldId;
            task.Type             = BuildTaskType.Turret;
            task.CreateTurretType = _turretType;
            task.PlatformId       = idPlatform;

            NWGameCommand com = new NWGameCommand();

            com.GameCommandType = GameCommandType.AddBuildTask;
            com.BuildTasks      = new NWBuildTask[1] {
                task
            };

            gameControllers.ServerSimulator.AddCommand(com);
        }