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.
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
{
|
|
|
|
public enum BuildingState
|
|
|
|
{
|
|
|
|
Building = 0,
|
|
|
|
Built = 1,
|
|
|
|
Fix = 2,
|
|
|
|
Upgrade = 3,
|
|
|
|
}
|
|
|
|
|
|
|
|
[ChildType(typeof(Farmland))]
|
|
|
|
public class Building: Entity, IAwake, ISerializeToEntity
|
|
|
|
{
|
|
|
|
public int ConfigId;
|
|
|
|
public Vector2 Position;
|
|
|
|
public int Durable;
|
|
|
|
public int IsUpgrade;
|
|
|
|
|
|
|
|
[BsonIgnore]
|
|
|
|
public StructureConfig Config => StructureConfigCategory.Instance.Get(this.ConfigId);
|
|
|
|
}
|
|
|
|
}
|