Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override void DeserializeReferences (GraphSerializationContext ctx) {
- int count = ctx.reader.ReadInt32();
- if (count == -1) {
- connections = null;
- } else {
- connections = new Connection[count];//ArrayPool<Connection>.ClaimWithExactLength (count);
- for (int i = 0; i < count; i++) {
- ctx.DeserializeNodeReference();
- connections[i] = new Connection(
- null,
- ctx.reader.ReadUInt32(),
- ctx.meta.version < AstarSerializer.V4_1_0 ? (byte)0xFF : ctx.reader.ReadByte()
- );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement