public static Entity CreateWith(uint id, EntityClass clazz, FlatTable table) { var entity = new Entity(id, clazz); foreach (var info in table.Properties) { entity.Properties.Add(Property.For(info)); } return entity; }
public Entity Copy() { var copy = new Entity(Id, Class); for (var i = 0; i < Properties.Count; ++i) { if (Properties[i] != null) { copy.Properties.Add(Properties[i].Copy()); } else { copy.Properties.Add(null); } } return copy; }
public Slot(Entity entity) { Entity = entity; Live = true; Baselines = new Entity[2]; }