Move the TraitInfo stuff into rules.lua

This commit is contained in:
ScottNZ
2013-12-20 22:53:37 +13:00
parent 883b014888
commit 7ca5d56c1f
8 changed files with 31 additions and 26 deletions

View File

@@ -173,24 +173,4 @@ end
Actor.Trait = function(actor, className)
return Internal.Trait(actor, className)
end
Actor.HasTraitInfo = function(actorType, className)
return Internal.HasTraitInfo(actorType, className)
end
Actor.TraitInfoOrDefault = function(actorType, className)
return Internal.TraitInfoOrDefault(actorType, className)
end
Actor.TraitInfo = function(actorType, className)
return Internal.TraitInfo(actorType, className)
end
Actor.InitialAltitude = function(actorName)
if Actor.HasTraitInfo("AircraftInfo") then
return Actor.TraitInfo(actorName, "AircraftInfo").CruiseAltitude
end
return 0
end