Skip to content

StrategyGame

namespace Griff.Modules.Strategy;
public static class StrategyGame

What 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.

public static bool CanPlace(Game game, Vector2 size, Vector2 center, string? team = null)
public static bool CancelTraining(Game game, Producer producer)
public static Faction? FactionOf(Game game, string? team)
public static bool IsVisible(Game game, Vector2 point)
public static void LookAt(Game game, Vector2 point)
public static Entity? PlaceBuilding(Game game, Worker worker, string building, Vector2 center, out string? why)
public static void Select(Game game, IEnumerable<Entity> entities)
public static int SupplyProvided(Game game, string team)
public static int SupplyUsed(Game game, string team)
public static string? Train(Game game, Producer producer, string unit)
public static IReadOnlyList<Entity> get_Selected(Game game)
public static StrategyHud? get_StrategyHud(Game game)