Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
WindowsPlatformProperties.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "GenericPlatform/GenericPlatformProperties.h"
7
8
9/**
10 * Implements Windows platform properties.
11 */
12template<bool HAS_EDITOR_DATA, bool IS_DEDICATED_SERVER, bool IS_CLIENT_ONLY>
15{
17 {
18 return HAS_EDITOR_DATA;
19 }
20
21 static FORCEINLINE const char* IniPlatformName()
22 {
23 return "Windows";
24 }
25
27 {
28 return TEXT("/Script/WindowsTargetPlatform.WindowsTargetSettings");
29 }
30
31 static FORCEINLINE const char* GetPhysicsFormat()
32 {
33 return "PhysXPC";
34 }
35
36 static FORCEINLINE bool IsGameOnly()
37 {
38 return UE_GAME;
39 }
40
42 {
44 }
45
47 {
48 return IS_CLIENT_ONLY;
49 }
50
51 static FORCEINLINE const char* PlatformName()
52 {
54 {
55 return "WindowsServer";
56 }
57
59 {
60 return "WindowsEditor";
61 }
62
64 {
65 return "WindowsClient";
66 }
67
68 return "Windows";
69 }
70
72 {
73 return !HAS_EDITOR_DATA;
74 }
75
77 {
79 }
80
82 {
83 return true;
84 }
85
87 {
88 return !IsServerOnly();
89 }
90
92 {
93 return !IsServerOnly() && !HasEditorOnlyData();
94 }
95
97 {
98 return true;
99 }
100
102 {
103 return false; // Requires expand from G8 to RGBA
104 }
105
107 {
108 return true;
109 }
110
112 {
113 return true;
114 }
115
117 {
118 return false;
119 }
120
122 {
123 return true;
124 }
125
127 {
129 {
130 return 0.0f;
131 }
132
133 if (HAS_EDITOR_DATA)
134 {
135 return 0.0f;
136 }
137
138 if (IS_CLIENT_ONLY)
139 {
140 return 0.0f;
141 }
142
143 return 1.0f;
144 }
145
147 {
148 return true;
149 }
150
151};
152
153#ifdef PROPERTY_HEADER_SHOULD_DEFINE_TYPE
154typedef FWindowsPlatformProperties<WITH_EDITORONLY_DATA, UE_SERVER, !WITH_SERVER_CODE && !WITH_EDITOR> FPlatformProperties;
155#endif
#define UE_GAME
Definition Build.h:29
#define TEXT(x)
Definition Platform.h:1108
#define FORCEINLINE
Definition Platform.h:644
static FORCEINLINE bool SupportsMeshLODStreaming()
static FORCEINLINE bool HasEditorOnlyData()
static FORCEINLINE bool HasSecurePackageFormat()
static FORCEINLINE bool RequiresCookedData()
static FORCEINLINE bool SupportsVirtualTextureStreaming()
static FORCEINLINE bool SupportsMultipleGameInstances()
static FORCEINLINE bool SupportsAudioStreaming()
static FORCEINLINE bool SupportsRayTracing()
static FORCEINLINE const char * GetPhysicsFormat()
static FORCEINLINE bool SupportsWindowedMode()
static FORCEINLINE const TCHAR * GetRuntimeSettingsClassName()
static FORCEINLINE const char * PlatformName()
static FORCEINLINE bool SupportsQuit()
static FORCEINLINE const char * IniPlatformName()
static FORCEINLINE float GetVariantPriority()
static FORCEINLINE bool IsServerOnly()
static FORCEINLINE bool IsGameOnly()
static FORCEINLINE bool IsClientOnly()
static FORCEINLINE bool SupportsMemoryMappedFiles()
static FORCEINLINE bool HasFixedResolution()
static FORCEINLINE bool SupportsGrayscaleSRGB()