public void Serialize(IBinarySerializer s) { WorldsInfo = s.SerializeUbiArtObjectArray <UbiArtObjKeyObjValuePair <UbiArtStringID, WorldInfo> >(WorldsInfo, name: nameof(WorldsInfo)); CurrentWorld = s.SerializeObject <ObjectPath>(CurrentWorld, name: nameof(CurrentWorld)); CurrentWorldTag = s.SerializeObject <UbiArtStringID>(CurrentWorldTag, name: nameof(CurrentWorldTag)); CurrentLevel = s.SerializeObject <ObjectPath>(CurrentLevel, name: nameof(CurrentLevel)); CurrentLevelTag = s.SerializeObject <UbiArtStringID>(CurrentLevelTag, name: nameof(CurrentLevelTag)); }
/// <summary> /// Constructor for a full path /// </summary> /// <param name="fullPath">The full path</param> public UbiArtPath(string fullPath) { var separatorIndex = fullPath.LastIndexOf('/') + 1; DirectoryPath = fullPath.Substring(0, separatorIndex); FileName = fullPath.Substring(separatorIndex); StringID = new UbiArtStringID(fullPath); Flags = 2; }