Пример #1
0
        public static void SendLevel()
        {
            DataFolder.DeleteLevel(DataFolder.LevelDirectory + "/temp.lvl");
            string filePath = DataFolder.CreateNewLevel("temp", 256, 256);

            WorldConfigFile config = DataFolder.GetWorldConfigFile(filePath);

            byte[] levelData = CalcHelper.ToByteArray(config);

            Send(levelData, EP2PSend.k_EP2PSendReliable, BB_LevelData, null);

            config.LoadIntoEditor();
        }