| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using Sirenix.OdinInspector;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using UnityEngine;
- [Serializable]
- public struct SpawnTime
- {
- public int id;
- public List<int> pos;
- public int startTime;
- public int endTime;
- public int num;
- [HideInInspector] public float Hp;
- [HideInInspector] public float moveSpeed;
- [HideInInspector] public float attack;
- }
- public enum WaveType
- {
- Common = 0, //正常
- Tower = 1, //塔波
- FromTower = 2, //根据塔血量出
- }
- /// <summary>
- /// A layer consists of a series of values in a grid.
- /// Each GameMap can have one or more layers.
- /// </summary>
- [System.Serializable]
- public class GameMapLayer
- {
- /// <summary> The layer's grid of tile values. -1 is an empty tile, else a value related to GameMapTile.id will be present </summary>
- public int[] grid = new int[0];
- public int duration;
- public string buildingId;
- public float buildingHp;
- public string name;
- public Dictionary<int, SpawnTime> spawnTimes = new();
- public WaveType waveType;
- public bool isDynamic;
- public int dynamicSheet;
- // ----------------------------------------------------------------------------------------------------------------
- }
|