You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
565 B
24 lines
565 B
3 years ago
|
using MongoDB.Bson.Serialization.Attributes;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
public enum BuildingState
|
||
|
{
|
||
|
Building = 0,
|
||
|
Built = 1,
|
||
|
Fix = 2,
|
||
|
Upgrade = 3,
|
||
|
}
|
||
|
|
||
|
public class Building: Entity, IAwake, ISerializeToEntity
|
||
|
{
|
||
|
public int ConfigId;
|
||
|
public Vector2 Position;
|
||
|
public int Durable;
|
||
|
public int State; //1.正在建造,2.建造完成,3.维修
|
||
|
|
||
|
[BsonIgnore]
|
||
|
public StructureConfig Config => StructureConfigCategory.Instance.Get(this.ConfigId);
|
||
|
}
|
||
|
}
|