StrategyGame
namespace Griff.Modules.Strategy;
public static class StrategyGameWhat a script can ask of a strategy game, as members of Game (Game.Train(producer, "Worker"), Game.Selected): the selection, factions and supply, training, building, the fog and the camera.
Methods
Section titled “Methods”CanPlace
Section titled “CanPlace”public static bool CanPlace(Game game, Vector2 size, Vector2 center, string? team = null)CancelTraining
Section titled “CancelTraining”public static bool CancelTraining(Game game, Producer producer)FactionOf
Section titled “FactionOf”public static Faction? FactionOf(Game game, string? team)IsVisible
Section titled “IsVisible”public static bool IsVisible(Game game, Vector2 point)LookAt
Section titled “LookAt”public static void LookAt(Game game, Vector2 point)PlaceBuilding
Section titled “PlaceBuilding”public static Entity? PlaceBuilding(Game game, Worker worker, string building, Vector2 center, out string? why)Select
Section titled “Select”public static void Select(Game game, IEnumerable<Entity> entities)SupplyProvided
Section titled “SupplyProvided”public static int SupplyProvided(Game game, string team)SupplyUsed
Section titled “SupplyUsed”public static int SupplyUsed(Game game, string team)public static string? Train(Game game, Producer producer, string unit)get_Selected
Section titled “get_Selected”public static IReadOnlyList<Entity> get_Selected(Game game)get_StrategyHud
Section titled “get_StrategyHud”public static StrategyHud? get_StrategyHud(Game game)