public void Accept <T>(uint componentId, DynamicSnapshot.SnapshotDeserializer <T> deserializeSnapshot, DynamicSnapshot.SnapshotSerializer <T> serializeSnapshot) where T : struct, ISpatialComponentSnapshot { var schemaObject = EntitySnapshot.Get(componentId).Value; Components.Add(componentId, deserializeSnapshot(schemaObject)); }
public void Accept <T>(uint componentId, DynamicSnapshot.SnapshotDeserializer <T> deserializeComponentData) where T : ISpatialComponentSnapshot { var schemaObject = EntitySnapshot.Get(componentId).Value; Components.Add(componentId, deserializeComponentData(schemaObject, World)); }