public void AddNetEntity(NetCreatableInfo info, INetEntity entity) { NetEntitySnapshot snapshot = entity.CreateSnapshot(info, snapshotSystem); DynamicSnapshotField field = AddNestedField(info.Id, snapshot); snapshotFields.Add(info.Id, field); }
public bool TryGetEntitySnapshot(ushort id, out NetEntitySnapshot snapshot) { DynamicSnapshotField field; if (snapshotFields.TryGetValue(id, out field)) { snapshot = (NetEntitySnapshot)field.Value; return(true); } else { snapshot = null; return(false); } }