nonstandard build time value for a cnc classic mod fixes #2164
remove the testcase in structures.yaml if unwanted for cnc mod
This commit is contained in:
committed by
Chris Forbes
parent
d498ff1085
commit
ed6a625c69
23
OpenRA.Mods.RA/Buildings/CustomBuildTimeValue.cs
Executable file
23
OpenRA.Mods.RA/Buildings/CustomBuildTimeValue.cs
Executable file
@@ -0,0 +1,23 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2012 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see COPYING.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Buildings
|
||||
{
|
||||
// allow a nonstandard build time value for a cnc classic mod
|
||||
|
||||
public class CustomBuildTimeValueInfo : TraitInfo<CustomBuildTimeValue>
|
||||
{
|
||||
public readonly int Value = 0; //in milisecons
|
||||
}
|
||||
|
||||
public class CustomBuildTimeValue { }
|
||||
}
|
||||
Reference in New Issue
Block a user