public SerializedScriptableObject(SerializationInfo info, StreamingContext context) { Path = info.GetValue(nameof(Path), Path); Guid = info.GetValue(nameof(Guid), ""); SerializedValue = info.GetValue(nameof(SerializedValue), ""); Type = ParseUtilities.ParseType(info.GetValue(nameof(Type), "")); }
public static SystemBase GetType(string typeName) { var type = ParseUtilities.ParseType(typeName); if (type != null) { return(_systems.TryGetValue(type, out var system) ? system : null); } return(null); }
public void AddComponentList(Entity entity, DataEntry data, DataList componentList) { if (componentList == null || componentList.Value.Count == 0) { return; } for (int i = 0; i < componentList.Value.Count; i++) { var type = ParseUtilities.ParseType(componentList.Value[i].GetValue <string>(DatabaseFields.Component)); if (type == null) { continue; } AddComponent(entity, data, type); } }
public SerializedGameObjectReference(SerializationInfo info, StreamingContext context) { _db = ParseUtilities.ParseType(info.GetValue(nameof(_db), "")); _name = info.GetValue(nameof(_name), _name); }