Пример #1
0
        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;
        }
Пример #2
0
        public Entity Copy() {
            Entity 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;
        }
Пример #3
0
 public Slot(Entity entity) {
     this.Entity = entity;
     this.Live = true;
     this.Baselines = new Entity[2];
 }