|
TModLoader v1.4.4.9
TModLoader source code documentation
|
Efficient builder for T:Terraria.ModLoader.PosData`1[] lookups covering the whole world. Must add elements in ascending pos order. More...
Collaboration diagram for Terraria.ModLoader.PosData< T >.OrderedSparseLookupBuilder:Public Member Functions | |
| OrderedSparseLookupBuilder (int capacity=1048576, bool compressEqualValues=true, bool insertDefaultEntries=false) | |
| Use compressEqualValues to produce a smaller lookup which won't work with M:Terraria.ModLoader.PosData.LookupExact``1(Terraria.ModLoader.PosData<``0>[],System.Int32,System.Int32,``0@) When using compressEqualValues without insertDefaultEntries , unspecified positions will default to the value of the previous specified position. | |
| void | Add (int x, int y, T value) |
| void | Add (int pos, T value) |
| PosData< T >[] | Build () |
Private Attributes | |
| readonly List< PosData< T > > | list |
| readonly bool | compressEqualValues |
| readonly bool | insertDefaultEntries |
| PosData< T > | last |
Efficient builder for T:Terraria.ModLoader.PosData`1[] lookups covering the whole world. Must add elements in ascending pos order.
Definition at line 13 of file PosData.cs.