private static void Postfix(Building_Door __instance) { //TODO disable utility if (false) { return; } LockUtility.GetData(__instance).ExposeData(); }
public FolderNode CreateFolderNodeWithError(string ownerId, string path, string name) { FolderNode node = null; LockUtility.Lock(ownerId, () => { node = DoCreateFolderNodeWithError(ownerId, path, name) as FolderNode; _panDbContext.SaveChanges(); }); return(node); }
public static bool CanSurpass(Building_Door door, Pawn p) { return(LockUtility.GetData(door).CurrentState.locked == false && p.RaceProps != null && p.RaceProps.intelligence >= Intelligence.Humanlike); }
private static void Postfix(Building_DoorExpanded __instance) { LockUtility.Remove(__instance); }