#
Class: GameCache#
HierarchyHandle<gamecache>
↳ GameCache
#
Constructors#
constructornew GameCache(campaignFile: string): GameCache
note
You cannot create more than 255 gamecaches
#
Parameters:Name | Type |
---|---|
campaignFile | string |
Returns: GameCache
Defined in: handles/gamecache.ts:7
#
Properties#
filename• Readonly
filename: string
Defined in: handles/gamecache.ts:7
#
handle• Readonly
handle: gamecache
Defined in: handles/handle.ts:6
#
Accessors#
idid(): number
Get the unique ID of the handle. The ID is recycled once you destroy the object.
Returns: number
The unique ID of a handle object.
Defined in: handles/handle.ts:18
#
Methods#
flushflush(): void
Returns: void
Defined in: handles/gamecache.ts:22
#
flushBooleanflushBoolean(missionKey: string, key: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: void
Defined in: handles/gamecache.ts:26
#
flushIntegerflushInteger(missionKey: string, key: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: void
Defined in: handles/gamecache.ts:30
#
flushMissionflushMission(missionKey: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
Returns: void
Defined in: handles/gamecache.ts:34
#
flushNumberflushNumber(missionKey: string, key: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: void
Defined in: handles/gamecache.ts:38
#
flushStringflushString(missionKey: string, key: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: void
Defined in: handles/gamecache.ts:42
#
flushUnitflushUnit(missionKey: string, key: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: void
Defined in: handles/gamecache.ts:46
#
getBooleangetBoolean(missionKey: string, key: string): boolean
Returns false if the specified value's data is not found in the cache.
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: boolean
Defined in: handles/gamecache.ts:53
#
getIntegergetInteger(missionKey: string, key: string): number
Returns 0 if the specified value's data is not found in the cache.
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: number
Defined in: handles/gamecache.ts:60
#
getNumbergetNumber(missionKey: string, key: string): number
Returns 0 if the specified value's data is not found in the cache.
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: number
Defined in: handles/gamecache.ts:67
#
getStringgetString(missionKey: string, key: string): string
Returns "" if the specified value's data is not found in the cache.
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: string
Defined in: handles/gamecache.ts:74
#
hasBooleanhasBoolean(missionKey: string, key: string): boolean
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: boolean
Defined in: handles/gamecache.ts:78
#
hasIntegerhasInteger(missionKey: string, key: string): boolean
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: boolean
Defined in: handles/gamecache.ts:82
#
hasNumberhasNumber(missionKey: string, key: string): boolean
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: boolean
Defined in: handles/gamecache.ts:86
#
hasStringhasString(missionKey: string, key: string): boolean
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: boolean
Defined in: handles/gamecache.ts:90
#
restoreUnitrestoreUnit(missionKey: string, key: string, forWhichPlayer: MapPlayer, x: number, y: number, face: number): unit
Returns null if the specified value's data is not found in the cache.
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
forWhichPlayer | MapPlayer |
x | number |
y | number |
face | number |
Returns: unit
Defined in: handles/gamecache.ts:97
#
savesave(): boolean
Returns: boolean
Defined in: handles/gamecache.ts:101
#
storestore(missionKey: string, key: string, value: string | number | boolean | unit): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
value | string | number | boolean | unit |
Returns: void
Defined in: handles/gamecache.ts:105
#
syncBooleansyncBoolean(missionKey: string, key: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: void
Defined in: handles/gamecache.ts:117
#
syncIntegersyncInteger(missionKey: string, key: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: void
Defined in: handles/gamecache.ts:121
#
syncNumbersyncNumber(missionKey: string, key: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: void
Defined in: handles/gamecache.ts:125
#
syncStringsyncString(missionKey: string, key: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: void
Defined in: handles/gamecache.ts:129
#
syncUnitsyncUnit(missionKey: string, key: string): void
#
Parameters:Name | Type |
---|---|
missionKey | string |
key | string |
Returns: void
Defined in: handles/gamecache.ts:133
#
fromHandlestatic fromHandle(handle: gamecache): GameCache
#
Parameters:Name | Type |
---|---|
handle | gamecache |
Returns: GameCache
Defined in: handles/gamecache.ts:137
#
reloadFromDiskstatic reloadFromDisk(): boolean
Returns: boolean
Defined in: handles/gamecache.ts:141