AkiraPixelWind/Assets/Scripts/Main/Definition/ScriptableObject/MapMonsterCfg.cs
2023-01-17 17:28:47 +08:00

39 lines
800 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "MapMonsterCfg", menuName = "ScriptableObject/´´½¨MapMonsterCfg", order = 0)]
public class MapMonsterCfg : ScriptableObject
{
public int MapID;
public List<MapMonsterCfg_Step> StepList;
public MapMonsterCfg()
{
StepList = new List<MapMonsterCfg_Step>();
}
}
[Serializable]
public class MapMonsterCfg_Step
{
public int StepID;
public List<MapMonsterCfg_Spawn> SpawnPoints;
public MapMonsterCfg_Step()
{
SpawnPoints = new List<MapMonsterCfg_Spawn>();
}
}
[Serializable]
public class MapMonsterCfg_Spawn
{
public int SpawnPointID;
public int MonsterCfgID;
public Vector3 Pos;
public int MonsterCount;
}