internal EntityIndexModel(EntityModel owner, string name, bool unique, FieldWithOrder[] fields, ushort[] storingFields = null) : base(owner, name, unique, fields, storingFields) { Global = false; State = owner.PersistentState == PersistentState.Detached ? EntityIndexState.Ready : EntityIndexState.Building; }
public override void ReadObject(BinSerializer bs) { base.ReadObject(bs); uint propIndex; do { propIndex = bs.ReadUInt32(); switch (propIndex) { case 1: Global = bs.ReadBoolean(); break; case 2: State = (EntityIndexState)bs.ReadByte(); break; case 0: break; default: throw new Exception($"Deserialize_ObjectUnknownFieldIndex: {GetType().Name} at {propIndex} "); } } while (propIndex != 0); }