public static void Prefix(ushort ___lineID, string ___name, object __instance, out bool __state) { NameHandler.CheckCounter(__instance, out __state); if (__state && TransportManager.instance.GetLineName(___lineID) == ___name) { __state = false; } }
public static void Prefix(uint ___citizenID, string ___name, object __instance, out bool __state) { NameHandler.CheckCounter(__instance, out __state); if (__state && CitizenManager.instance.GetCitizenName(___citizenID) == ___name) { __state = false; } }
public static void Prefix(ushort ___building, string ___name, object __instance, out bool __state) { NameHandler.CheckCounter(__instance, out __state); if (__state && BuildingManager.instance.GetBuildingName(___building, InstanceID.Empty) == ___name) { __state = false; } }
public static void Prefix(ushort ___parkedID, string ___name, object __instance, out bool __state) { NameHandler.CheckCounter(__instance, out __state); if (__state && VehicleManager.instance.GetParkedVehicleName(___parkedID) == ___name) { __state = false; } }
public static void Prefix(ushort ___segmentID, string ___name, object __instance, out bool __state) { NameHandler.CheckCounter(__instance, out __state); if (__state && NetManager.instance.GetSegmentName(___segmentID) == ___name) { __state = false; } }
public static void Prefix(int ___park, string ___name, object __instance, out bool __state) { NameHandler.CheckCounter(__instance, out __state); if (__state && DistrictManager.instance.GetParkName(___park) == ___name) { __state = false; } }
public static void Prefix(ushort ___disasterID, string ___name, object __instance, out bool __state) { NameHandler.CheckCounter(__instance, out __state); if (__state && DisasterManager.instance.GetDisasterName(___disasterID) == ___name) { __state = false; } }
public static void Postfix(ushort ___building, string ___name, ref bool __state, object __instance) { if (!NameHandler.CanRun(__instance, __state)) { return; } Command.SendToAll(new ChangeNameCommand { Type = InstanceType.Building, Id = ___building, Name = ___name }); }
public static void Postfix(IEnumerator <bool> __instance, ref bool __state, ushort ___segmentID, string ___name) { if (!NameHandler.CanRun(__instance, __state)) { return; } Command.SendToAll(new ChangeNameCommand { Type = InstanceType.NetSegment, Id = ___segmentID, Name = ___name }); }
public static void Postfix(uint ___citizenID, string ___name, ref bool __state, object __instance) { if (!NameHandler.CanRun(__instance, __state)) { return; } Command.SendToAll(new ChangeNameCommand { Type = InstanceType.Citizen, Id = (int)___citizenID, Name = ___name }); }
public static void Prefix(object __instance, out bool __state) { NameHandler.CheckCounter(__instance, out __state); }