public void Read(AssetReader reader) { Renderer.Read(reader); DynamicLightmapSTInSystem.Read(reader); SystemId = reader.ReadInt32(); InstanceHash.Read(reader); if (IsReadGeometryHash(reader.Flags)) { GeometryHash.Read(reader); } }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.Add("renderer", Renderer.ExportYAML(container)); node.Add("dynamicLightmapSTInSystem", DynamicLightmapSTInSystem.ExportYAML(container)); node.Add("systemId", SystemId); node.Add("instanceHash", InstanceHash.ExportYAML(container)); node.Add("geometryHash", GeometryHash.ExportYAML(container)); return(node); }
public void Read(AssetStream stream) { Renderer.Read(stream); DynamicLightmapSTInSystem.Read(stream); SystemId = stream.ReadInt32(); InstanceHash.Read(stream); if (IsReadGeometryHash(stream.Flags)) { GeometryHash.Read(stream); } }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.Add(RendererName, Renderer.ExportYAML(container)); node.Add(DynamicLightmapSTInSystemName, DynamicLightmapSTInSystem.ExportYAML(container)); node.Add(SystemIdName, SystemId); node.Add(InstanceHashName, InstanceHash.ExportYAML(container)); node.Add(GeometryHashName, GeometryHash.ExportYAML(container)); return(node); }
public void Write(AssetWriter writer) { Renderer.Write(writer); DynamicLightmapSTInSystem.Write(writer); writer.Write(SystemId); InstanceHash.Write(writer); if (HasGeometryHash(writer.Flags)) { GeometryHash.Write(writer); } }
public WebFacade(AppInfo appInfo, PackageDownloadManager packageDownloadManager, PackageDataValidator validator, LocalPackageManager localPackageManager, IPeerRegistry peerRegistry, IPackageRegistry packageRegistry, InstanceHash instanceHash, LongRunningTasksManager tasks, PeersCluster peersCluster) { this.appInfo = appInfo ?? throw new ArgumentNullException(nameof(appInfo)); this.packageDownloadManager = packageDownloadManager ?? throw new ArgumentNullException(nameof(packageDownloadManager)); this.validator = validator ?? throw new ArgumentNullException(nameof(validator)); this.localPackageManager = localPackageManager ?? throw new ArgumentNullException(nameof(localPackageManager)); this.peerRegistry = peerRegistry ?? throw new ArgumentNullException(nameof(peerRegistry)); this.packageRegistry = packageRegistry ?? throw new ArgumentNullException(nameof(packageRegistry)); this.instanceHash = instanceHash ?? throw new ArgumentNullException(nameof(instanceHash)); this.tasks = tasks ?? throw new ArgumentNullException(nameof(tasks)); this.peersCluster = peersCluster ?? throw new ArgumentNullException(nameof(peersCluster)); }
public void SetCursor(InstanceHash id) { Cursor cursor; if (GlobalData.Current.Cursors.TryGetValue(id, out cursor)) { _mainWindow.Cursor = cursor; } else { _mainWindow.Cursor = null; } }
public HttpApiClient(IMessageSerializer serializer, CompatibilityChecker compatibility, InstanceHash instanceHash) { this.serializer = serializer ?? throw new ArgumentNullException(nameof(serializer)); this.compatibility = compatibility ?? throw new ArgumentNullException(nameof(compatibility)); this.instanceHash = instanceHash ?? throw new ArgumentNullException(nameof(instanceHash)); }
public HttpRequestHeaderValidator(ILogger <HttpRequestHeaderValidator> logger, CompatibilityChecker compatibilityChecker, InstanceHash instanceHash) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); CompatibilityChecker = compatibilityChecker ?? throw new System.ArgumentNullException(nameof(compatibilityChecker)); InstanceHash = instanceHash ?? throw new ArgumentNullException(nameof(instanceHash)); }
public ABaseAssetType(string id, uint hash) { _id = new InstanceHash(id); _instanceHash = hash; }
public AssetEntry GetAsset(TypeHash type, InstanceHash instance) { if (_lastResult.TypeId == type.TheHash && _lastResult.InstanceId == instance.TheHash) { return _lastResult; } for (int idx = 0; idx < _assetEntries.Length; ++idx) { if (_assetEntries[idx].TypeId == type.TheHash && _assetEntries[idx].InstanceId == instance.TheHash) { _lastResult = _assetEntries[idx]; return _lastResult; } } return null; }
public bool Exists(TypeHash type, InstanceHash instance) { if (_lastResult.TypeId == type.TheHash && _lastResult.InstanceId == instance.TheHash) { return true; } for (int idx = 0; idx < _assetEntries.Length; ++idx) { if (_assetEntries[idx].TypeId == type.TheHash && _assetEntries[idx].InstanceId == instance.TheHash) { _lastResult = _assetEntries[idx]; return true; } } return false; }