Anton Tarasenko
5ecafc45bc
Change commands to use string getters/setters
2 years ago
Anton Tarasenko
6f88b7c228
Add string getters and setters to new collections
2 years ago
Anton Tarasenko
8cfc42eda4
Squashed commit of the following:
...
commit dd6f236b360640b4c5ca2bfefdddf11482ab1bcf
Author: Anton Tarasenko <dkanus@gmail.com>
Date: Mon Jul 4 03:55:45 2022 +0700
Change `AcediaConfig` to use new collections
2 years ago
Anton Tarasenko
5aff7f2a9d
Change JSON test to use `ArrayList` / `HashTable`
2 years ago
Anton Tarasenko
e2abcb3fd4
Change old mixed collection tests into new ones
2 years ago
Anton Tarasenko
10daee4220
Add `Collection` methods for ArrayList/HashTable
2 years ago
Anton Tarasenko
74118e3229
Fix JSON API parsing subitems as old collections
...
When parsing values inside JSON object/array, stored objects and arrays
would always be parsed as `DynamicArray`/`AssociativeArray`, despite
starting parsing as new collections.
2 years ago
Anton Tarasenko
6a0eda9362
Add tests for `ArrayList`/`HashTable` iterators
2 years ago
Anton Tarasenko
c961b67e58
Fix `Iter` comments
2 years ago
Anton Tarasenko
fbe3e5073a
Add LeaveOnlyNotNone() method in the parent class
2 years ago
Anton Tarasenko
1a42354cd2
Fix `HashTable` iterator not being created
...
Messed up during converting code for `AssociativeArray`'s iterator by
not paying enough attention and using old class instead of `HashTable`.
2 years ago
Anton Tarasenko
951e3a83c2
Add ability to parse JSON into ArrayList/HashTable
2 years ago
Anton Tarasenko
1b69b2484c
Add API methods for creating `HashTable`s
2 years ago
Anton Tarasenko
8f317f458d
Add printing support for `ArrayList` / `HashTable`
2 years ago
Anton Tarasenko
14f2bfc407
Add `HashTable` collection tests
2 years ago
Anton Tarasenko
506f2633d2
Add tests for `ArrayList`
2 years ago
Anton Tarasenko
777c1f1b9f
Fix `ArrayList.GetItem()` removing returned item
2 years ago
Anton Tarasenko
a46f906692
Fix trading time pause
...
Trading time pausing has a set of problems: not properly resetting pause
once trading time somehow ended, pausing time during the wave would
result in reducing next trading time to 1 second, initial time
(countdown before wave 1) was not considered trading time.
All of these issues are resolved in this commit.
2 years ago
Anton Tarasenko
3045c6904f
Fix `Set...()` methods leaking memory in ArrayList
2 years ago
Anton Tarasenko
184bdf247a
Add spaces after declarations into ArrayList class
2 years ago
Anton Tarasenko
e6f2254c35
Add `HashTable` colelction
2 years ago
Anton Tarasenko
9c4966e93a
Fix issues with ArrayList conversion
...
We are just copying `DynamicArray` into `ArrayList` with slightly
different behavior. There are still no tests and some small errors pop
up due to changes being made. This patch fixes them.
2 years ago
Anton Tarasenko
2ca4e3aa61
Change `ArrayListIterator` to use filter method
2 years ago
Anton Tarasenko
65c6706062
Remove life version checks from `ArrayList`
2 years ago
Anton Tarasenko
5ffe8e75b5
Change commands to only work for four players
2 years ago
Anton Tarasenko
fcbb72f0b3
Add config record for health component
2 years ago
Anton Tarasenko
ddafa83399
Add `AHealthComponent` to AcediaCore
2 years ago
Anton Tarasenko
02defb53db
Add shutdown event for `LevelCore`
2 years ago
Anton Tarasenko
55a1bb91b9
Add `EPawn` interface and its implementation
2 years ago
Anton Tarasenko
001e7c1750
Fix `othersConsole` missing during Executed() call
2 years ago
Anton Tarasenko
1d10523ef7
Fix capitalization in methods' names
2 years ago
Anton Tarasenko
cc117f24af
Change which players `othersConsole` addresses
...
Before this patch `othersConsole` didn't address any targeted players,
now it addresses all players expect command's instigator and a player
for who `ExecutedFor()` is currently being called.
2 years ago
Anton Tarasenko
9f282c4f66
Fix comment for `Command` class
2 years ago
Anton Tarasenko
1660ef2364
Remove unused `GetNewLine()` method from `Command`
2 years ago
Anton Tarasenko
7dae012f33
Change database API to validate new dbs' names
2 years ago
Anton Tarasenko
50b8bb30a1
Change `IsValidConfigName()` into `IsValidname()`
...
There are many occasions for Acedia where we might want to limit names
of objects to a certain predictable and manageable set and limitations
placed on config names seem to fit all of these cases.
That is why we rename `IsValidConfigName()` into a more
generic-sounding method name.
Additional change is limiting length of a "valid name" to 50 characters
at most, since Unreal Engine doesn't like loing config lines.
2 years ago
Anton Tarasenko
1f3a047dd1
Change Command feature to report bad command name
...
Before command feature did not report anything when user has entered a
command name that doesn't exist. This commit fixes that issue.
2 years ago
Anton Tarasenko
c99603a114
Fix some commands accepting empty player list
2 years ago
Anton Tarasenko
88292cb89e
Add tests for TextTemplate's ignoreFormatting flag
2 years ago
Anton Tarasenko
60a71f5ca0
Fix comments
2 years ago
Anton Tarasenko
5cb6904937
Change parameter names
2 years ago
Anton Tarasenko
f1d17eefdb
Fix bug that prevented disabling of `Feature`s
2 years ago
Anton Tarasenko
dd5d1c3496
Change remainder param to allow options first
2 years ago
Anton Tarasenko
f1532ce3a7
Add `TextTemplate` ability to paste formatted args
2 years ago
Anton Tarasenko
d1e746e736
Add `ToFormattedText()` method to `BaseText`
2 years ago
Anton Tarasenko
0137eda5ee
Add `TextNeutral` color to ColorAPI and aliases
2 years ago
Anton Tarasenko
47a4095bb1
Add `TextTemplate` class
2 years ago
Anton Tarasenko
03cf5c5745
Fix some errors formatted text not being reported
...
Formatted blocks with empty contents were not being reported sometimes
when formatted text ended with them, e.g. "{$red$red}".
2 years ago
Anton Tarasenko
18399897a2
Fix console log spam
2 years ago
Anton Tarasenko
5180d822f9
Fix char prefix not being colored in info query
2 years ago