mod manifest loading
This commit is contained in:
@@ -33,7 +33,7 @@ namespace OpenRa.Traits
|
||||
{
|
||||
case "StartProduction":
|
||||
{
|
||||
var unit = Rules.ActorInfo[ order.TargetString ];
|
||||
var unit = Rules.Info[ order.TargetString ];
|
||||
var ui = unit.Traits.Get<BuildableInfo>();
|
||||
var time = ui.Cost
|
||||
* Rules.General.BuildSpeed /* todo: country-specific build speed bonus */
|
||||
@@ -65,7 +65,7 @@ namespace OpenRa.Traits
|
||||
}
|
||||
case "PauseProduction":
|
||||
{
|
||||
var producing = CurrentItem( Rules.ActorInfo[ order.TargetString ].Category );
|
||||
var producing = CurrentItem( Rules.Info[ order.TargetString ].Category );
|
||||
if( producing != null && producing.Item == order.TargetString )
|
||||
producing.Paused = ( order.TargetLocation.X != 0 );
|
||||
break;
|
||||
@@ -95,7 +95,7 @@ namespace OpenRa.Traits
|
||||
|
||||
public void CancelProduction( string itemName )
|
||||
{
|
||||
var category = Rules.ActorInfo[itemName].Category;
|
||||
var category = Rules.Info[itemName].Category;
|
||||
var queue = production[ category ];
|
||||
if (queue.Count == 0) return;
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace OpenRa.Traits
|
||||
|
||||
public void BuildUnit( string name )
|
||||
{
|
||||
var newUnitType = Rules.ActorInfo[ name ];
|
||||
var newUnitType = Rules.Info[ name ];
|
||||
var producerTypes = Rules.TechTree.UnitBuiltAt( newUnitType );
|
||||
Actor producer = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user