Skip to content

Commit

Permalink
Add Actions.House*
Browse files Browse the repository at this point in the history
Signed-off-by: Thimo Braker <[email protected]>
  • Loading branch information
LauraRozier committed May 2, 2017
1 parent 37685e7 commit f56e74a
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions Config/mapScriptSnippets/kpSnippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,66 @@
"Title": "KP - GroupSetFormation",
"Code": "var\r\n groupId: Integer;\r\n numColumns: Byte;\r\n\r\nActions.GroupSetFormation(groupId, numColumns);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseAddDamage",
"Code": "var\r\n houseId: Integer;\r\n damageAmount: Word;\r\n\r\nActions.HouseAddDamage(houseId, damageAmount);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseAddRepair",
"Code": "var\r\n houseId: Integer;\r\n repairAmount: Word;\r\n\r\nActions.HouseAddRepair(houseId, repairAmount);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseAddWaresTo",
"Code": "var\r\n houseId: Integer;\r\n wareType: TKMWareType;\r\n count: Word;\r\n\r\nActions.HouseAddWaresTo(houseId, wareType, repairAmount);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseAllow",
"Code": "var\r\n playerId: Integer;\r\n houseType: TKMHouseType;\r\n allowed: Boolean;\r\n\r\nActions.HouseAllow(playerId, houseType, allowed);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseDestroy",
"Code": "var\r\n houseId: Integer;\r\n silent: Boolean; \/\/ Prevent the player from recieving a notification\r\n\r\nActions.HouseDestroy(houseId, silent);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseRepairEnable",
"Code": "var\r\n houseId: Integer;\r\n repairEnabled: Boolean;\r\n\r\nActions.HouseRepairEnable(houseId, repairEnabled);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseTrainQueueAdd",
"Code": "var\r\n houseId: Integer;\r\n unitType: TKMUnitType;\r\n count: Integer;\r\n realCount: Integer;\r\n\r\nrealCount := Actions.HouseTrainQueueAdd(houseId, unitType, count);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseTrainQueueRemove",
"Code": "var\r\n houseId: Integer;\r\n queueIndex: Integer;\r\n\r\nActions.HouseTrainQueueRemove(houseId, queueIndex);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseUnlock",
"Code": "var\r\n playerId: Integer;\r\n houseType: TKMHouseType;\r\n\r\nActions.HouseUnlock(playerId, houseType);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseWareInBlock",
"Code": "var\r\n houseId: Integer;\r\n wareType: TKMWareType;\r\n blocked: Boolean;\r\n\r\nActions.HouseWareInBlock(houseId, wareType, blocked);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseWeaponsOrderSet",
"Code": "var\r\n houseId: Integer;\r\n wareType: TKMWareType;\r\n amount: Integer;\r\n\r\nActions.HouseWeaponsOrderSet(houseId, wareType, amount);\r\n"
},
{
"Group": 1,
"Title": "KP - HouseWoodcutterChopOnly",
"Code": "var\r\n houseId: Integer;\r\n chopOnly: Boolean;\r\n\r\nActions.HouseWoodcutterChopOnly(houseId, chopOnly);\r\n"
},
{
"Group": 3,
"Title": "KP - GetHouseName",
Expand Down

0 comments on commit f56e74a

Please sign in to comment.