public static void LoadMonsterEntity(FileStream stream, BinaryReader reader)
        {
            var monsterLoadingInfo = new MonsterCreationInfo
            {
                Coordinate        = SerializationUtilities.ReadCoordinate(reader),
                MonsterProperties = SerializationUtilities.ReadMonsterProperties(reader)
            };

            WorldSystem.AddMonsterCreationInfo(monsterLoadingInfo);
        }
示例#2
0
        public void OnLoadMap()
        {
            string name = m_InputField.text;

            if (name != "" && CentralSystem.Running)
            {
                WorldSystem.UnloadMap();
                FileSystem.LoadMapByName(name);
            }
        }
        public static void LoadTileEntity(FileStream stream, BinaryReader reader)
        {
            var tileLoadingInfo = new TileCreationInfo
            {
                Coordinate     = SerializationUtilities.ReadCoordinate(reader),
                TileProperties = SerializationUtilities.ReadTileProperties(reader)
            };

            WorldSystem.AddTileCreationInfo(tileLoadingInfo);
        }