예제 #1
0
        internal void Spawn(ObjectDefinition objectDefinition)
        {
            var job = new ProductionJob(objectDefinition, instant: true);

            _productionQueue.Insert(0, job);
        }
예제 #2
0
 public GameObject Add(ObjectDefinition objectDefinition, Player player) => GameLogic.CreateObject(objectDefinition, player);
예제 #3
0
        internal void QueueProduction(ObjectDefinition objectDefinition)
        {
            var job = new ProductionJob(objectDefinition);

            _productionQueue.Add(job);
        }
예제 #4
0
 public bool ProducedAtHelipad(ObjectDefinition definition) => definition.KindOf.Get(ObjectKinds.ProducedAtHelipad);
예제 #5
0
 public GameObject Add(ObjectDefinition objectDefinition)
 {
     return(Add(objectDefinition, _civilianPlayer));
 }
예제 #6
0
        internal void SpawnPayload(ObjectDefinition objectDefinition, float buildTime = 0.0f)
        {
            var job = new ProductionJob(objectDefinition, buildTime / _gameObject.ProductionModifier);

            _productionQueue.Insert(1, job);
        }
예제 #7
0
        internal void QueueProduction(ObjectDefinition objectDefinition)
        {
            var job = new ProductionJob(objectDefinition, objectDefinition.BuildTime / _gameObject.ProductionModifier);

            _productionQueue.Add(job);
        }