Beispiel #1
0
 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), ""));
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 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);
     }
 }
Beispiel #4
0
 public SerializedGameObjectReference(SerializationInfo info, StreamingContext context)
 {
     _db   = ParseUtilities.ParseType(info.GetValue(nameof(_db), ""));
     _name = info.GetValue(nameof(_name), _name);
 }