public void Serialize(IO.EndianStream s) { s.Stream(Path); s.Stream(ref CurrentWaypoint); s.Stream(ref PathTime); BSaveGame.StreamFreeListItemPtr(s, ref LinkedPath); s.Stream(ref PathLevel); }
public void Serialize(IO.EndianStream s) { s.Stream(ref Action); if (Action) { s.Stream(ref ActionType, BActionTypeStreamer.Instance); BSaveGame.StreamFreeListItemPtr(s, ref ActionPtr); } else { ActionType = Phx.BActionType.Invalid; ActionPtr = TypeExtensions.kNone; } }