private static void Postfix(Building_Door __instance)
        {
            //TODO disable utility
            if (false)
            {
                return;
            }

            LockUtility.GetData(__instance).ExposeData();
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public static bool CanSurpass(Building_Door door, Pawn p)
 {
     return(LockUtility.GetData(door).CurrentState.locked == false && p.RaceProps != null && p.RaceProps.intelligence >= Intelligence.Humanlike);
 }
Esempio n. 4
0
 private static void Postfix(Building_DoorExpanded __instance)
 {
     LockUtility.Remove(__instance);
 }