private static void Run(SpawnPoint.WalkPathDesc item, int index) { ForEdit($"Serial##{index}", () => item.Serial, x => item.Serial = x); ForEdit($"Flag##{index}", () => item.Flag, x => item.Flag = x); ForEdit($"Id##{index}", () => item.Id, x => item.Id = x); for (var i = 0; i < item.Positions.Count; i++) { var pos = item.Positions[i]; ForEdit3($"Walk #{index}-{i}", () => new Vector3(pos.X, pos.Y, pos.Z), x => { pos.X = x.X; pos.Y = x.Y; pos.Z = x.Z; }); } }
private static void Run(SpawnPoint.WalkPathDesc item) { ForEdit("Unk00", () => item.Unk00, x => item.Unk00 = x); ForEdit("Unk04", () => item.Unk04, x => item.Unk04 = x); ForEdit("Unk06", () => item.Unk06, x => item.Unk06 = x); for (var i = 0; i < item.Positions.Count; i++) { var pos = item.Positions[i]; ForEdit3($"Walk #{i}", () => new Vector3(pos.X, pos.Y, pos.Z), x => { pos.X = x.X; pos.Y = x.Y; pos.Z = x.Z; }); } }