HaveStoredValue
- Parameters
-
key string
valueType integer
missionKey string
cache gamecache
- comment
- patch
1.07
- Source
- Blizzard.j
- return type
boolean
- Source code
function HaveStoredValue takes string key, integer valueType, string missionKey, gamecache cache returns boolean if (valueType == bj_GAMECACHE_BOOLEAN) then return HaveStoredBoolean(cache, missionKey, key) elseif (valueType == bj_GAMECACHE_INTEGER) then return HaveStoredInteger(cache, missionKey, key) elseif (valueType == bj_GAMECACHE_REAL) then return HaveStoredReal(cache, missionKey, key) elseif (valueType == bj_GAMECACHE_UNIT) then return HaveStoredUnit(cache, missionKey, key) elseif (valueType == bj_GAMECACHE_STRING) then return HaveStoredString(cache, missionKey, key) else // Unrecognized value type - ignore the request. return false endif endfunction