A SpaceTraders Agent
at main 642 B view raw
1const st = @import("../root.zig"); 2const Client = st.http.Client; 3const Response = st.http.Response; 4const Wrapper = st.models.Wrapper; 5const Query = st.models.Query; 6 7const Contract = st.models.contracts.Contract; 8const Faction = st.models.factions.Faction; 9const FactionSymbol = st.models.factions.Symbol; 10const Ship = st.models.ships.Ship; 11 12pub const Agent = struct { 13 symbol: []const u8, 14 headquarters: []const u8, 15 credits: u64, 16 startingFaction: FactionSymbol, 17 shipCount: u64, 18}; 19 20pub const Register = struct { 21 token: []const u8, 22 agent: Agent, 23 faction: Faction, 24 contract: Contract, 25 ships: []Ship, 26};