Exemplo n.º 1
0
        void OnServerInitialized()
        {
            ins = this;
            LoadVariables();
            LoadData();

            shortnameToId = ItemManager.itemList.ToDictionary(x => x.shortname, y => y.itemid);
            shortnameToDn = ItemManager.itemList.ToDictionary(x => x.shortname, y => y.displayName.translated);

            CallRandomStrike();
        }
Exemplo n.º 2
0
        void Unload()
        {
            ins = null;
            SaveData();

            var objects = UnityEngine.Object.FindObjectsOfType <StrikePlane>();

            if (objects != null)
            {
                foreach (var obj in objects)
                {
                    UnityEngine.Object.Destroy(obj);
                }
            }
        }
Exemplo n.º 3
0
 private bool IsStrikePlane(CargoPlane plane)
 {
     return(Airstrike?.Call <bool>("isStrikePlane", plane) ?? false);
 }