| 409 | } |
| 410 | |
| 411 | int64_t* RPGStats::GetOrCreateInt64(int& attributeId) |
| 412 | { |
| 413 | if (attributeId < 0) { |
| 414 | attributeId = (int)Int64s.Size(); |
| 415 | auto val = GameAlloc<int64_t>(); |
| 416 | *val = (int64_t)0; |
| 417 | Int64s.push_back(val); |
| 418 | } |
| 419 | |
| 420 | return Int64s[attributeId]; |
| 421 | } |
| 422 | |
| 423 | std::optional<float*> RPGStats::GetFloat(int attributeId) |
| 424 | { |