@tsukilabs/nil-bindings 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +3 -0
- package/dist/index.js +7 -0
- package/dist/src/Academy.d.ts +7 -0
- package/dist/src/AcademyRecruitCatalog.d.ts +7 -0
- package/dist/src/AcademyRecruitCatalogEntry.d.ts +9 -0
- package/dist/src/AcademyRecruitCatalogRecipe.d.ts +10 -0
- package/dist/src/AcademyRecruitOrder.d.ts +12 -0
- package/dist/src/AcademyRecruitOrderId.d.ts +1 -0
- package/dist/src/AcademyRecruitOrderRequest.d.ts +7 -0
- package/dist/src/AcademyRecruitOrderState.d.ts +7 -0
- package/dist/src/AcademyRecruitQueue.d.ts +4 -0
- package/dist/src/AcademyUnitId.d.ts +1 -0
- package/dist/src/AddAcademyRecruitOrderRequest.d.ts +6 -0
- package/dist/src/AddPrefectureBuildOrderRequest.d.ts +6 -0
- package/dist/src/AddStableRecruitOrderRequest.d.ts +6 -0
- package/dist/src/AddWorkshopRecruitOrderRequest.d.ts +6 -0
- package/dist/src/Army.d.ts +10 -0
- package/dist/src/ArmyId.d.ts +1 -0
- package/dist/src/ArmyPersonnel.d.ts +10 -0
- package/dist/src/ArmyState.d.ts +7 -0
- package/dist/src/AuthorizeRequest.d.ts +6 -0
- package/dist/src/AuthorizeResponse.d.ts +2 -0
- package/dist/src/BattleReport.d.ts +17 -0
- package/dist/src/BattleResult.d.ts +15 -0
- package/dist/src/BattleWinner.d.ts +1 -0
- package/dist/src/BotAdvancedStartRatio.d.ts +4 -0
- package/dist/src/BotDensity.d.ts +1 -0
- package/dist/src/BotId.d.ts +1 -0
- package/dist/src/BuildStep.d.ts +6 -0
- package/dist/src/BuildingId.d.ts +1 -0
- package/dist/src/BuildingLevel.d.ts +1 -0
- package/dist/src/BuildingLevelDiff.d.ts +1 -0
- package/dist/src/BuildingStats.d.ts +17 -0
- package/dist/src/BuildingStatsTable.d.ts +11 -0
- package/dist/src/CancelAcademyRecruitOrderRequest.d.ts +8 -0
- package/dist/src/CancelPrefectureBuildOrderRequest.d.ts +6 -0
- package/dist/src/CancelStableRecruitOrderRequest.d.ts +8 -0
- package/dist/src/CancelWorkshopRecruitOrderRequest.d.ts +8 -0
- package/dist/src/ChatHistory.d.ts +5 -0
- package/dist/src/ChatMessage.d.ts +11 -0
- package/dist/src/ChatMessageAuthor.d.ts +7 -0
- package/dist/src/ChatMessageContent.d.ts +1 -0
- package/dist/src/ChatMessageId.d.ts +1 -0
- package/dist/src/ChatMessageKind.d.ts +1 -0
- package/dist/src/CheatGetAcademyRecruitQueueRequest.d.ts +6 -0
- package/dist/src/CheatGetAcademyRecruitQueueResponse.d.ts +2 -0
- package/dist/src/CheatGetAcademyRecruitQueuesRequest.d.ts +7 -0
- package/dist/src/CheatGetAcademyRecruitQueuesResponse.d.ts +6 -0
- package/dist/src/CheatGetAllAcademyRecruitQueuesRequest.d.ts +5 -0
- package/dist/src/CheatGetAllAcademyRecruitQueuesResponse.d.ts +6 -0
- package/dist/src/CheatGetAllPrefectureBuildQueuesRequest.d.ts +5 -0
- package/dist/src/CheatGetAllPrefectureBuildQueuesResponse.d.ts +6 -0
- package/dist/src/CheatGetAllStableRecruitQueuesRequest.d.ts +5 -0
- package/dist/src/CheatGetAllStableRecruitQueuesResponse.d.ts +6 -0
- package/dist/src/CheatGetBuildStepsRequest.d.ts +6 -0
- package/dist/src/CheatGetBuildStepsResponse.d.ts +2 -0
- package/dist/src/CheatGetEthicsRequest.d.ts +6 -0
- package/dist/src/CheatGetEthicsResponse.d.ts +2 -0
- package/dist/src/CheatGetIdleArmiesAtRequest.d.ts +6 -0
- package/dist/src/CheatGetIdleArmiesAtResponse.d.ts +2 -0
- package/dist/src/CheatGetIdlePersonnelAtRequest.d.ts +6 -0
- package/dist/src/CheatGetIdlePersonnelAtResponse.d.ts +2 -0
- package/dist/src/CheatGetInfrastructureRequest.d.ts +6 -0
- package/dist/src/CheatGetInfrastructureResponse.d.ts +2 -0
- package/dist/src/CheatGetManeuversOfRequest.d.ts +6 -0
- package/dist/src/CheatGetManeuversOfResponse.d.ts +2 -0
- package/dist/src/CheatGetManeuversRequest.d.ts +4 -0
- package/dist/src/CheatGetManeuversResponse.d.ts +2 -0
- package/dist/src/CheatGetPlayerRequest.d.ts +6 -0
- package/dist/src/CheatGetPlayerResponse.d.ts +2 -0
- package/dist/src/CheatGetPlayersRequest.d.ts +4 -0
- package/dist/src/CheatGetPlayersResponse.d.ts +2 -0
- package/dist/src/CheatGetPrefectureBuildQueueRequest.d.ts +6 -0
- package/dist/src/CheatGetPrefectureBuildQueueResponse.d.ts +2 -0
- package/dist/src/CheatGetPrefectureBuildQueuesRequest.d.ts +7 -0
- package/dist/src/CheatGetPrefectureBuildQueuesResponse.d.ts +6 -0
- package/dist/src/CheatGetResourcesRequest.d.ts +6 -0
- package/dist/src/CheatGetResourcesResponse.d.ts +2 -0
- package/dist/src/CheatGetStableRecruitQueueRequest.d.ts +6 -0
- package/dist/src/CheatGetStableRecruitQueueResponse.d.ts +2 -0
- package/dist/src/CheatGetStableRecruitQueuesRequest.d.ts +7 -0
- package/dist/src/CheatGetStableRecruitQueuesResponse.d.ts +6 -0
- package/dist/src/CheatGetStorageCapacityRequest.d.ts +6 -0
- package/dist/src/CheatGetStorageCapacityResponse.d.ts +2 -0
- package/dist/src/CheatSetBotEthicsRequest.d.ts +8 -0
- package/dist/src/CheatSetBuildingLevelRequest.d.ts +10 -0
- package/dist/src/CheatSetFoodRequest.d.ts +8 -0
- package/dist/src/CheatSetIronRequest.d.ts +8 -0
- package/dist/src/CheatSetMaxFoodRequest.d.ts +6 -0
- package/dist/src/CheatSetMaxInfrastructureRequest.d.ts +6 -0
- package/dist/src/CheatSetMaxIronRequest.d.ts +6 -0
- package/dist/src/CheatSetMaxResourcesRequest.d.ts +6 -0
- package/dist/src/CheatSetMaxSiloResourcesRequest.d.ts +6 -0
- package/dist/src/CheatSetMaxStoneRequest.d.ts +6 -0
- package/dist/src/CheatSetMaxWarehouseResourcesRequest.d.ts +6 -0
- package/dist/src/CheatSetMaxWoodRequest.d.ts +6 -0
- package/dist/src/CheatSetResourcesRequest.d.ts +8 -0
- package/dist/src/CheatSetStabilityRequest.d.ts +8 -0
- package/dist/src/CheatSetStoneRequest.d.ts +8 -0
- package/dist/src/CheatSetWoodRequest.d.ts +8 -0
- package/dist/src/CheatSkipRoundRequest.d.ts +5 -0
- package/dist/src/CheatSpawnBotRequest.d.ts +7 -0
- package/dist/src/CheatSpawnBotResponse.d.ts +2 -0
- package/dist/src/CheatSpawnPersonnelRequest.d.ts +10 -0
- package/dist/src/City.d.ts +12 -0
- package/dist/src/CityName.d.ts +1 -0
- package/dist/src/CitySearch.d.ts +6 -0
- package/dist/src/ContinentIndex.d.ts +1 -0
- package/dist/src/ContinentSize.d.ts +1 -0
- package/dist/src/Coord.d.ts +4 -0
- package/dist/src/Cost.d.ts +4 -0
- package/dist/src/CreateRemoteWorldRequest.d.ts +9 -0
- package/dist/src/CreateRemoteWorldResponse.d.ts +2 -0
- package/dist/src/CreateUserRequest.d.ts +6 -0
- package/dist/src/DeleteRemoteWorldRequest.d.ts +4 -0
- package/dist/src/EthicPowerAxis.d.ts +1 -0
- package/dist/src/EthicTruthAxis.d.ts +1 -0
- package/dist/src/Ethics.d.ts +6 -0
- package/dist/src/Event.d.ts +38 -0
- package/dist/src/Farm.d.ts +5 -0
- package/dist/src/Food.d.ts +1 -0
- package/dist/src/ForwardReportRequest.d.ts +8 -0
- package/dist/src/GetAcademyRecruitCatalogRequest.d.ts +6 -0
- package/dist/src/GetAcademyRecruitCatalogResponse.d.ts +2 -0
- package/dist/src/GetBotCoordsRequest.d.ts +6 -0
- package/dist/src/GetBotCoordsResponse.d.ts +2 -0
- package/dist/src/GetChatHistoryRequest.d.ts +4 -0
- package/dist/src/GetChatHistoryResponse.d.ts +2 -0
- package/dist/src/GetCityRequest.d.ts +6 -0
- package/dist/src/GetCityResponse.d.ts +2 -0
- package/dist/src/GetCityScoreRequest.d.ts +6 -0
- package/dist/src/GetCityScoreResponse.d.ts +2 -0
- package/dist/src/GetContinentSizeRequest.d.ts +4 -0
- package/dist/src/GetContinentSizeResponse.d.ts +2 -0
- package/dist/src/GetPlayerCoordsRequest.d.ts +6 -0
- package/dist/src/GetPlayerCoordsResponse.d.ts +2 -0
- package/dist/src/GetPlayerIdsRequest.d.ts +4 -0
- package/dist/src/GetPlayerIdsResponse.d.ts +2 -0
- package/dist/src/GetPlayerMaintenanceRequest.d.ts +4 -0
- package/dist/src/GetPlayerMaintenanceResponse.d.ts +2 -0
- package/dist/src/GetPlayerMilitaryRequest.d.ts +4 -0
- package/dist/src/GetPlayerMilitaryResponse.d.ts +2 -0
- package/dist/src/GetPlayerReportsRequest.d.ts +4 -0
- package/dist/src/GetPlayerReportsResponse.d.ts +2 -0
- package/dist/src/GetPlayerRequest.d.ts +4 -0
- package/dist/src/GetPlayerResponse.d.ts +2 -0
- package/dist/src/GetPlayerStatusRequest.d.ts +6 -0
- package/dist/src/GetPlayerStatusResponse.d.ts +2 -0
- package/dist/src/GetPlayerStorageCapacityRequest.d.ts +4 -0
- package/dist/src/GetPlayerStorageCapacityResponse.d.ts +2 -0
- package/dist/src/GetPlayerWorldsRequest.d.ts +4 -0
- package/dist/src/GetPlayerWorldsResponse.d.ts +2 -0
- package/dist/src/GetPrecursorCoordsRequest.d.ts +6 -0
- package/dist/src/GetPrecursorCoordsResponse.d.ts +2 -0
- package/dist/src/GetPrefectureBuildCatalogRequest.d.ts +6 -0
- package/dist/src/GetPrefectureBuildCatalogResponse.d.ts +2 -0
- package/dist/src/GetPublicBotRequest.d.ts +6 -0
- package/dist/src/GetPublicBotResponse.d.ts +2 -0
- package/dist/src/GetPublicBotsRequest.d.ts +4 -0
- package/dist/src/GetPublicBotsResponse.d.ts +2 -0
- package/dist/src/GetPublicCitiesRequest.d.ts +8 -0
- package/dist/src/GetPublicCitiesResponse.d.ts +2 -0
- package/dist/src/GetPublicCityRequest.d.ts +7 -0
- package/dist/src/GetPublicCityResponse.d.ts +6 -0
- package/dist/src/GetPublicFieldRequest.d.ts +6 -0
- package/dist/src/GetPublicFieldResponse.d.ts +2 -0
- package/dist/src/GetPublicFieldsRequest.d.ts +6 -0
- package/dist/src/GetPublicFieldsResponse.d.ts +3 -0
- package/dist/src/GetPublicPlayerRequest.d.ts +6 -0
- package/dist/src/GetPublicPlayerResponse.d.ts +2 -0
- package/dist/src/GetPublicPlayersRequest.d.ts +4 -0
- package/dist/src/GetPublicPlayersResponse.d.ts +2 -0
- package/dist/src/GetPublicPrecursorRequest.d.ts +6 -0
- package/dist/src/GetPublicPrecursorResponse.d.ts +2 -0
- package/dist/src/GetPublicPrecursorsRequest.d.ts +4 -0
- package/dist/src/GetPublicPrecursorsResponse.d.ts +2 -0
- package/dist/src/GetRankRequest.d.ts +6 -0
- package/dist/src/GetRankResponse.d.ts +2 -0
- package/dist/src/GetRankingRequest.d.ts +4 -0
- package/dist/src/GetRankingResponse.d.ts +2 -0
- package/dist/src/GetRemoteWorldLimitPerUserResponse.d.ts +1 -0
- package/dist/src/GetRemoteWorldLimitResponse.d.ts +1 -0
- package/dist/src/GetRemoteWorldRequest.d.ts +4 -0
- package/dist/src/GetRemoteWorldResponse.d.ts +2 -0
- package/dist/src/GetRemoteWorldsResponse.d.ts +2 -0
- package/dist/src/GetReportRequest.d.ts +6 -0
- package/dist/src/GetReportResponse.d.ts +2 -0
- package/dist/src/GetReportsRequest.d.ts +7 -0
- package/dist/src/GetReportsResponse.d.ts +2 -0
- package/dist/src/GetRoundRequest.d.ts +4 -0
- package/dist/src/GetRoundResponse.d.ts +2 -0
- package/dist/src/GetServerKindResponse.d.ts +2 -0
- package/dist/src/GetStableRecruitCatalogRequest.d.ts +6 -0
- package/dist/src/GetStableRecruitCatalogResponse.d.ts +2 -0
- package/dist/src/GetWorkshopRecruitCatalogRequest.d.ts +6 -0
- package/dist/src/GetWorkshopRecruitCatalogResponse.d.ts +2 -0
- package/dist/src/GetWorldBotsRequest.d.ts +4 -0
- package/dist/src/GetWorldBotsResponse.d.ts +2 -0
- package/dist/src/GetWorldConfigRequest.d.ts +4 -0
- package/dist/src/GetWorldConfigResponse.d.ts +2 -0
- package/dist/src/GetWorldPersonnelRequest.d.ts +4 -0
- package/dist/src/GetWorldPersonnelResponse.d.ts +2 -0
- package/dist/src/GetWorldPlayersRequest.d.ts +4 -0
- package/dist/src/GetWorldPlayersResponse.d.ts +2 -0
- package/dist/src/GetWorldPrecursorsRequest.d.ts +4 -0
- package/dist/src/GetWorldPrecursorsResponse.d.ts +2 -0
- package/dist/src/GetWorldStatsRequest.d.ts +4 -0
- package/dist/src/GetWorldStatsResponse.d.ts +2 -0
- package/dist/src/Influence.d.ts +8 -0
- package/dist/src/Infrastructure.d.ts +24 -0
- package/dist/src/InfrastructureRequirements.d.ts +14 -0
- package/dist/src/InfrastructureStats.d.ts +19 -0
- package/dist/src/Iron.d.ts +1 -0
- package/dist/src/IronMine.d.ts +5 -0
- package/dist/src/LeaveRequest.d.ts +4 -0
- package/dist/src/Locale.d.ts +1 -0
- package/dist/src/Luck.d.ts +1 -0
- package/dist/src/Maintenance.d.ts +9 -0
- package/dist/src/Maneuver.d.ts +19 -0
- package/dist/src/ManeuverDirection.d.ts +1 -0
- package/dist/src/ManeuverDistance.d.ts +1 -0
- package/dist/src/ManeuverHaul.d.ts +6 -0
- package/dist/src/ManeuverId.d.ts +1 -0
- package/dist/src/ManeuverKind.d.ts +1 -0
- package/dist/src/ManeuverRequest.d.ts +9 -0
- package/dist/src/ManeuverState.d.ts +7 -0
- package/dist/src/Military.d.ts +14 -0
- package/dist/src/MineId.d.ts +1 -0
- package/dist/src/MineProduction.d.ts +4 -0
- package/dist/src/MineStats.d.ts +6 -0
- package/dist/src/MineStatsTable.d.ts +9 -0
- package/dist/src/Minutes.d.ts +1 -0
- package/dist/src/OverallStorageCapacity.d.ts +5 -0
- package/dist/src/Password.d.ts +1 -0
- package/dist/src/Player.d.ts +10 -0
- package/dist/src/PlayerExistsRequest.d.ts +6 -0
- package/dist/src/PlayerExistsResponse.d.ts +1 -0
- package/dist/src/PlayerId.d.ts +1 -0
- package/dist/src/PlayerOptions.d.ts +4 -0
- package/dist/src/PlayerStatus.d.ts +1 -0
- package/dist/src/PrecursorId.d.ts +1 -0
- package/dist/src/Prefecture.d.ts +7 -0
- package/dist/src/PrefectureBuildCatalog.d.ts +14 -0
- package/dist/src/PrefectureBuildCatalogEntry.d.ts +11 -0
- package/dist/src/PrefectureBuildCatalogRecipe.d.ts +12 -0
- package/dist/src/PrefectureBuildOrder.d.ts +16 -0
- package/dist/src/PrefectureBuildOrderId.d.ts +1 -0
- package/dist/src/PrefectureBuildOrderKind.d.ts +1 -0
- package/dist/src/PrefectureBuildOrderRequest.d.ts +8 -0
- package/dist/src/PrefectureBuildOrderState.d.ts +7 -0
- package/dist/src/PrefectureBuildQueue.d.ts +4 -0
- package/dist/src/PublicBot.d.ts +4 -0
- package/dist/src/PublicCity.d.ts +10 -0
- package/dist/src/PublicField.d.ts +10 -0
- package/dist/src/PublicPlayer.d.ts +6 -0
- package/dist/src/PublicPrecursor.d.ts +6 -0
- package/dist/src/PushChatMessageRequest.d.ts +5 -0
- package/dist/src/PushChatMessageResponse.d.ts +2 -0
- package/dist/src/Quarry.d.ts +5 -0
- package/dist/src/Rank.d.ts +1 -0
- package/dist/src/Ranking.d.ts +2 -0
- package/dist/src/RankingEntry.d.ts +9 -0
- package/dist/src/RemoteWorld.d.ts +18 -0
- package/dist/src/RemoveReportRequest.d.ts +6 -0
- package/dist/src/RenameCityRequest.d.ts +7 -0
- package/dist/src/ReportId.d.ts +1 -0
- package/dist/src/ReportKind.d.ts +9 -0
- package/dist/src/RequestManeuverRequest.d.ts +6 -0
- package/dist/src/RequestManeuverResponse.d.ts +2 -0
- package/dist/src/Resources.d.ts +10 -0
- package/dist/src/Round.d.ts +7 -0
- package/dist/src/RoundDuration.d.ts +5 -0
- package/dist/src/RoundId.d.ts +1 -0
- package/dist/src/RoundState.d.ts +10 -0
- package/dist/src/Ruler.d.ts +13 -0
- package/dist/src/SaveLocalWorldRequest.d.ts +5 -0
- package/dist/src/Sawmill.d.ts +5 -0
- package/dist/src/Score.d.ts +1 -0
- package/dist/src/SearchCityRequest.d.ts +6 -0
- package/dist/src/SearchCityResponse.d.ts +2 -0
- package/dist/src/SearchPublicCityRequest.d.ts +6 -0
- package/dist/src/SearchPublicCityResponse.d.ts +2 -0
- package/dist/src/ServerKind.d.ts +7 -0
- package/dist/src/SetPlayerReadyRequest.d.ts +5 -0
- package/dist/src/SetPlayerReadyResponse.d.ts +2 -0
- package/dist/src/SetPlayerStatusRequest.d.ts +6 -0
- package/dist/src/Silo.d.ts +5 -0
- package/dist/src/SimulateBattleRequest.d.ts +11 -0
- package/dist/src/SimulateBattleResponse.d.ts +2 -0
- package/dist/src/SpawnPlayerRequest.d.ts +8 -0
- package/dist/src/Speed.d.ts +4 -0
- package/dist/src/Squad.d.ts +9 -0
- package/dist/src/SquadSize.d.ts +1 -0
- package/dist/src/Stability.d.ts +4 -0
- package/dist/src/Stable.d.ts +7 -0
- package/dist/src/StableRecruitCatalog.d.ts +5 -0
- package/dist/src/StableRecruitCatalogEntry.d.ts +9 -0
- package/dist/src/StableRecruitCatalogRecipe.d.ts +10 -0
- package/dist/src/StableRecruitOrder.d.ts +12 -0
- package/dist/src/StableRecruitOrderId.d.ts +1 -0
- package/dist/src/StableRecruitOrderRequest.d.ts +7 -0
- package/dist/src/StableRecruitOrderState.d.ts +7 -0
- package/dist/src/StableRecruitQueue.d.ts +4 -0
- package/dist/src/StableUnitId.d.ts +1 -0
- package/dist/src/StartRoundRequest.d.ts +4 -0
- package/dist/src/StartRoundResponse.d.ts +2 -0
- package/dist/src/Stone.d.ts +1 -0
- package/dist/src/StorageCapacity.d.ts +4 -0
- package/dist/src/StorageId.d.ts +1 -0
- package/dist/src/StorageStats.d.ts +6 -0
- package/dist/src/StorageStatsTable.d.ts +9 -0
- package/dist/src/SupportReport.d.ts +15 -0
- package/dist/src/ToggleBuildingRequest.d.ts +9 -0
- package/dist/src/Token.d.ts +1 -0
- package/dist/src/UnitBox.d.ts +1 -0
- package/dist/src/UnitId.d.ts +1 -0
- package/dist/src/UserExistsRequest.d.ts +4 -0
- package/dist/src/UserExistsResponse.d.ts +1 -0
- package/dist/src/ValidateTokenRequest.d.ts +4 -0
- package/dist/src/ValidateTokenResponse.d.ts +2 -0
- package/dist/src/VersionResponse.d.ts +1 -0
- package/dist/src/Wall.d.ts +5 -0
- package/dist/src/WallDefense.d.ts +1 -0
- package/dist/src/WallDefenseBonus.d.ts +1 -0
- package/dist/src/WallStats.d.ts +8 -0
- package/dist/src/WallStatsTable.d.ts +5 -0
- package/dist/src/Warehouse.d.ts +5 -0
- package/dist/src/Wood.d.ts +1 -0
- package/dist/src/Workforce.d.ts +9 -0
- package/dist/src/Workshop.d.ts +7 -0
- package/dist/src/WorkshopRecruitCatalog.d.ts +4 -0
- package/dist/src/WorkshopRecruitCatalogEntry.d.ts +9 -0
- package/dist/src/WorkshopRecruitCatalogRecipe.d.ts +10 -0
- package/dist/src/WorkshopRecruitOrder.d.ts +12 -0
- package/dist/src/WorkshopRecruitOrderId.d.ts +1 -0
- package/dist/src/WorkshopRecruitOrderRequest.d.ts +7 -0
- package/dist/src/WorkshopRecruitOrderState.d.ts +7 -0
- package/dist/src/WorkshopRecruitQueue.d.ts +4 -0
- package/dist/src/WorkshopUnitId.d.ts +1 -0
- package/dist/src/WorldConfig.d.ts +17 -0
- package/dist/src/WorldId.d.ts +1 -0
- package/dist/src/WorldName.d.ts +1 -0
- package/dist/src/WorldOptions.d.ts +17 -0
- package/dist/src/WorldSpeed.d.ts +1 -0
- package/dist/src/WorldStats.d.ts +4 -0
- package/dist/src/WorldUnitSpeed.d.ts +1 -0
- package/dist/src/index.d.ts +345 -0
- package/package.json +39 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ContinentSize } from './ContinentSize';
|
|
2
|
+
import { PlayerId } from './PlayerId';
|
|
3
|
+
import { RoundDuration } from './RoundDuration';
|
|
4
|
+
import { RoundId } from './RoundId';
|
|
5
|
+
import { WorldConfig } from './WorldConfig';
|
|
6
|
+
export type RemoteWorld = {
|
|
7
|
+
config: WorldConfig;
|
|
8
|
+
description: string | null;
|
|
9
|
+
createdBy: PlayerId;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
hasPassword: boolean;
|
|
13
|
+
currentRound: RoundId;
|
|
14
|
+
roundDuration: RoundDuration | null;
|
|
15
|
+
activePlayers: number;
|
|
16
|
+
totalPlayers: number;
|
|
17
|
+
continentSize: ContinentSize;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ReportId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RoundId = number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BotId } from './BotId';
|
|
2
|
+
import { PlayerId } from './PlayerId';
|
|
3
|
+
import { PrecursorId } from './PrecursorId';
|
|
4
|
+
export type Ruler = {
|
|
5
|
+
"kind": "bot";
|
|
6
|
+
id: BotId;
|
|
7
|
+
} | {
|
|
8
|
+
"kind": "player";
|
|
9
|
+
id: PlayerId;
|
|
10
|
+
} | {
|
|
11
|
+
"kind": "precursor";
|
|
12
|
+
id: PrecursorId;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Score = number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BuildingLevel } from './BuildingLevel';
|
|
2
|
+
import { Luck } from './Luck';
|
|
3
|
+
import { Squad } from './Squad';
|
|
4
|
+
import { WorldId } from './WorldId';
|
|
5
|
+
export type SimulateBattleRequest = {
|
|
6
|
+
world: WorldId;
|
|
7
|
+
attacker: Array<Squad>;
|
|
8
|
+
defender: Array<Squad>;
|
|
9
|
+
luck?: Luck | null;
|
|
10
|
+
wall: BuildingLevel;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SquadSize = number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InfrastructureRequirements } from './InfrastructureRequirements';
|
|
2
|
+
import { StableRecruitCatalogRecipe } from './StableRecruitCatalogRecipe';
|
|
3
|
+
export type StableRecruitCatalogEntry = {
|
|
4
|
+
"kind": "available";
|
|
5
|
+
recipe: StableRecruitCatalogRecipe;
|
|
6
|
+
} | {
|
|
7
|
+
"kind": "unmet";
|
|
8
|
+
requirements: InfrastructureRequirements;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InfrastructureRequirements } from './InfrastructureRequirements';
|
|
2
|
+
import { Maintenance } from './Maintenance';
|
|
3
|
+
import { Resources } from './Resources';
|
|
4
|
+
import { Workforce } from './Workforce';
|
|
5
|
+
export type StableRecruitCatalogRecipe = {
|
|
6
|
+
resources: Resources;
|
|
7
|
+
maintenance: Maintenance;
|
|
8
|
+
workforce: Workforce;
|
|
9
|
+
requirements: InfrastructureRequirements;
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Resources } from './Resources';
|
|
2
|
+
import { Squad } from './Squad';
|
|
3
|
+
import { StableRecruitOrderId } from './StableRecruitOrderId';
|
|
4
|
+
import { StableRecruitOrderState } from './StableRecruitOrderState';
|
|
5
|
+
import { Workforce } from './Workforce';
|
|
6
|
+
export type StableRecruitOrder = {
|
|
7
|
+
id: StableRecruitOrderId;
|
|
8
|
+
squad: Squad;
|
|
9
|
+
resources: Resources;
|
|
10
|
+
workforce: Workforce;
|
|
11
|
+
state: StableRecruitOrderState;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type StableRecruitOrderId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type StableUnitId = "heavy-cavalry" | "light-cavalry";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Stone = number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type StorageId = "silo" | "warehouse";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ArmyPersonnel } from './ArmyPersonnel';
|
|
2
|
+
import { Coord } from './Coord';
|
|
3
|
+
import { ReportId } from './ReportId';
|
|
4
|
+
import { RoundId } from './RoundId';
|
|
5
|
+
import { Ruler } from './Ruler';
|
|
6
|
+
export type SupportReport = {
|
|
7
|
+
id: ReportId;
|
|
8
|
+
sender: Ruler;
|
|
9
|
+
receiver: Ruler;
|
|
10
|
+
origin: Coord;
|
|
11
|
+
destination: Coord;
|
|
12
|
+
personnel: ArmyPersonnel;
|
|
13
|
+
round: RoundId;
|
|
14
|
+
time: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Token = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UnitBox = "archer" | "axeman" | "heavy-cavalry" | "light-cavalry" | "pikeman" | "ram" | "swordsman";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UnitId = "archer" | "axeman" | "heavy-cavalry" | "light-cavalry" | "pikeman" | "ram" | "swordsman";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UserExistsResponse = boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type VersionResponse = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type WallDefense = number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type WallDefenseBonus = number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BuildingLevel } from './BuildingLevel';
|
|
2
|
+
import { WallDefense } from './WallDefense';
|
|
3
|
+
import { WallDefenseBonus } from './WallDefenseBonus';
|
|
4
|
+
export type WallStats = {
|
|
5
|
+
level: BuildingLevel;
|
|
6
|
+
defense: WallDefense;
|
|
7
|
+
defensePercent: WallDefenseBonus;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Wood = number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workforce is a special resource used to construct buildings and recruit troops.
|
|
3
|
+
* The amount generated per round will always be equal to the level of the relevant
|
|
4
|
+
* building multiplied by the world speed.
|
|
5
|
+
*
|
|
6
|
+
* Unlike other resources, workforce should never accumulate for the next round.
|
|
7
|
+
* Anything that is not used should be discarded.
|
|
8
|
+
*/
|
|
9
|
+
export type Workforce = number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InfrastructureRequirements } from './InfrastructureRequirements';
|
|
2
|
+
import { WorkshopRecruitCatalogRecipe } from './WorkshopRecruitCatalogRecipe';
|
|
3
|
+
export type WorkshopRecruitCatalogEntry = {
|
|
4
|
+
"kind": "available";
|
|
5
|
+
recipe: WorkshopRecruitCatalogRecipe;
|
|
6
|
+
} | {
|
|
7
|
+
"kind": "unmet";
|
|
8
|
+
requirements: InfrastructureRequirements;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InfrastructureRequirements } from './InfrastructureRequirements';
|
|
2
|
+
import { Maintenance } from './Maintenance';
|
|
3
|
+
import { Resources } from './Resources';
|
|
4
|
+
import { Workforce } from './Workforce';
|
|
5
|
+
export type WorkshopRecruitCatalogRecipe = {
|
|
6
|
+
resources: Resources;
|
|
7
|
+
maintenance: Maintenance;
|
|
8
|
+
workforce: Workforce;
|
|
9
|
+
requirements: InfrastructureRequirements;
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Resources } from './Resources';
|
|
2
|
+
import { Squad } from './Squad';
|
|
3
|
+
import { Workforce } from './Workforce';
|
|
4
|
+
import { WorkshopRecruitOrderId } from './WorkshopRecruitOrderId';
|
|
5
|
+
import { WorkshopRecruitOrderState } from './WorkshopRecruitOrderState';
|
|
6
|
+
export type WorkshopRecruitOrder = {
|
|
7
|
+
id: WorkshopRecruitOrderId;
|
|
8
|
+
squad: Squad;
|
|
9
|
+
resources: Resources;
|
|
10
|
+
workforce: Workforce;
|
|
11
|
+
state: WorkshopRecruitOrderState;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type WorkshopRecruitOrderId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type WorkshopUnitId = "ram";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BotAdvancedStartRatio } from './BotAdvancedStartRatio';
|
|
2
|
+
import { BotDensity } from './BotDensity';
|
|
3
|
+
import { Locale } from './Locale';
|
|
4
|
+
import { WorldId } from './WorldId';
|
|
5
|
+
import { WorldName } from './WorldName';
|
|
6
|
+
import { WorldSpeed } from './WorldSpeed';
|
|
7
|
+
import { WorldUnitSpeed } from './WorldUnitSpeed';
|
|
8
|
+
export type WorldConfig = {
|
|
9
|
+
name: WorldName;
|
|
10
|
+
id: WorldId;
|
|
11
|
+
locale: Locale;
|
|
12
|
+
allowCheats: boolean;
|
|
13
|
+
speed: WorldSpeed;
|
|
14
|
+
unitSpeed: WorldUnitSpeed;
|
|
15
|
+
botDensity: BotDensity;
|
|
16
|
+
botAdvancedStartRatio: BotAdvancedStartRatio;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type WorldId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type WorldName = string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BotAdvancedStartRatio } from './BotAdvancedStartRatio';
|
|
2
|
+
import { BotDensity } from './BotDensity';
|
|
3
|
+
import { ContinentSize } from './ContinentSize';
|
|
4
|
+
import { Locale } from './Locale';
|
|
5
|
+
import { WorldName } from './WorldName';
|
|
6
|
+
import { WorldSpeed } from './WorldSpeed';
|
|
7
|
+
import { WorldUnitSpeed } from './WorldUnitSpeed';
|
|
8
|
+
export type WorldOptions = {
|
|
9
|
+
name: WorldName;
|
|
10
|
+
size: ContinentSize;
|
|
11
|
+
locale: Locale;
|
|
12
|
+
allowCheats: boolean;
|
|
13
|
+
speed: WorldSpeed;
|
|
14
|
+
unitSpeed: WorldUnitSpeed;
|
|
15
|
+
botDensity: BotDensity;
|
|
16
|
+
botAdvancedStartRatio: BotAdvancedStartRatio;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type WorldSpeed = number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type WorldUnitSpeed = number;
|