Пример #1
0
        private void GameMap_Start(On.GameMap.orig_Start orig, GameMap self)
        {
            if (!IsRando)
            {
                orig(self);
                return;
            }
            //Dev.Log("START THE MAP!");
            LogicManager.reachableItems = new List <string>();
            LogicManager.checkedItems   = new List <string>();
            //Create the custom pin group, and add all the new pins
            if (this.custPinGroup == null)
            {
                this.theMap = self;

                this.custPinGroup = new GameObject("Custom Pins");
                this.custPinGroup.AddComponent <PinGroup>();
                this.custPinGroup.transform.parent   = self.transform;
                this.custPinGroup.transform.position = new Vector3(0f, 0f, 0f);
                this.custPinGroup.SetActive(false);

                foreach (PinData pin in PinData_S.All.Values)
                {
                    this.addPinToRoom(pin);
                }
            }

            orig(self);
        }
Пример #2
0
 public void gameMapStart(On.GameMap.orig_Start orig, GameMap self)
 {
     orig(self);
     if (State != WebSocketState.Open)
     {
         return;
     }
     GetRandoSettings();
     SendMessage("NewSave", "true");
 }
 public void gameMapStart(On.GameMap.orig_Start orig, GameMap self)
 {
     orig(self);
     if (State != WebSocketState.Open)
     {
         return;
     }
     randoHasLeftDash = randoHasRightDash = randoHasLeftClaw = randoHasRightClaw = randoHasUpSlash = randoHasLeftSlash = randoHasRightSlash = randoHasSwim = randoHasElevatorPass = randoHasDreamer = randoHasFocus = false;
     GetRandom();
     SendMessage("NewSave", "true");
 }