daily update on 20230730 by nitload youmu, 5th day of params displacement
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
using StgSharp;
|
||||
using StgSharp.Control;
|
||||
using StgSharp.Logic;
|
||||
using System.Data;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace StgSharp.Math
|
||||
{
|
||||
public class M128Map
|
||||
public unsafe class M128Map
|
||||
{
|
||||
public readonly long mapID;
|
||||
|
||||
internal long mapPtr;
|
||||
internal readonly StgSharp.LinkedListNode<long> _unusedM128Header;
|
||||
private const int mapSize = 30 * 30;
|
||||
|
||||
internal StgSharp.LinkedList<long> m128Map =
|
||||
new StgSharp.LinkedList<long>();
|
||||
@@ -23,15 +26,16 @@ namespace StgSharp.Math
|
||||
|
||||
public M128Map()
|
||||
{
|
||||
long M128Ptr = internalIO.internalInitBigM128Map(4*30*30);
|
||||
m128Map.Add(0);
|
||||
mapPtr = (long)(Marshal.AllocHGlobal(sizeof(M128)*mapSize)+15);
|
||||
|
||||
long firstM128ptr = (mapPtr / 16 + 1) * 16;
|
||||
|
||||
m128Map.Add(0);
|
||||
_unusedM128Header = m128Map._hook._next;
|
||||
|
||||
for (int i = 1; i < 80*80/4; i++)
|
||||
for (int i = 0; i < 4*30*30*4; i+=16)
|
||||
{
|
||||
m128Map.Add(M128Ptr);
|
||||
M128Ptr += 4;
|
||||
m128Map.Add(firstM128ptr+i);
|
||||
}
|
||||
|
||||
mapID = Calc.RandomSeed();
|
||||
|
||||
Reference in New Issue
Block a user