Ejemplo n.º 1
0
        public static void Bed(User user)
        {
            RoomChecker.SpawnBuilding(user, 1, new Vector3i(5, 5, 5), user.Player.Position.XYZi + Vector3i.Down - new Vector3i(2, 0, 2));
            var bed = WorldObjectDebugUtil.SpawnAndClaim <BedComponent>("WoodenFabricBedObject", user, user.Position.XYZi + Vector3i.Forward);

            Task.Delay(2000).Wait();
            bed.Sleep(user.Player);
        }
Ejemplo n.º 2
0
 public static void TollTrigger(User user)
 {
     var otherUser = TestUtils.OtherUser(user);
     var station   = WorldObjectDebugUtil.SpawnAndClaim <TollComponent>("TollObject", otherUser, user.Position.XZi);
     var door      = WorldObjectDebugUtil.SpawnAndClaim("DoorObject", otherUser, user.Position.XZi + Vector2i.Right);
 }