コード例 #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);
        }