Format more engine code
This commit is contained in:
@@ -56,7 +56,6 @@ const String AssetsImportingManager::CreateVisualScriptTag(TEXT("VisualScript"))
|
||||
class AssetsImportingManagerService : public EngineService
|
||||
{
|
||||
public:
|
||||
|
||||
AssetsImportingManagerService()
|
||||
: EngineService(TEXT("AssetsImportingManager"), -400)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
class AssetsImportingManager
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// The asset importers.
|
||||
/// </summary>
|
||||
@@ -24,7 +23,6 @@ public:
|
||||
static Array<AssetCreator> Creators;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// The create texture tag (using internal import pipeline to crate texture asset from custom image source).
|
||||
/// </summary>
|
||||
@@ -116,7 +114,6 @@ public:
|
||||
static const String CreateVisualScriptTag;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Gets the asset importer by file extension.
|
||||
/// </summary>
|
||||
@@ -132,7 +129,6 @@ public:
|
||||
static const AssetCreator* GetCreator(const String& tag);
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates new asset.
|
||||
/// </summary>
|
||||
@@ -226,7 +222,6 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
static bool Create(const CreateAssetFunction& callback, const StringView& inputPath, const StringView& outputPath, Guid& assetId, void* arg);
|
||||
};
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
class CreateAnimationGraph
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
class CreateAnimationGraphFunction
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
class CreateCollisionData
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the CollisionData.
|
||||
/// </summary>
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
class CreateJson
|
||||
{
|
||||
public:
|
||||
|
||||
static bool Create(const StringView& path, rapidjson_flax::StringBuffer& data, const String& dataTypename);
|
||||
static bool Create(const StringView& path, rapidjson_flax::StringBuffer& data, const char* dataTypename);
|
||||
static bool Create(const StringView& path, StringAnsiView& data, StringAnsiView& dataTypename);
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
class CreateMaterial
|
||||
{
|
||||
public:
|
||||
|
||||
struct Options
|
||||
{
|
||||
MaterialInfo Info;
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
class CreateMaterialFunction
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
class CreateMaterialInstance
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
class CreateParticleEmitter
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
class CreateParticleEmitterFunction
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
class CreateParticleSystem
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
class CreateRawData
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the raw data asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
class CreateSceneAnimation
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
class CreateSkeletonMask
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
class CreateVisualScript
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Creates the asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
class ImportAudio
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Importing audio options
|
||||
/// </summary>
|
||||
@@ -44,14 +43,12 @@ public:
|
||||
String ToString() const;
|
||||
|
||||
public:
|
||||
|
||||
// [ISerializable]
|
||||
void Serialize(SerializeStream& stream, const void* otherObj) override;
|
||||
void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override;
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Tries the get audio import options from the target location asset.
|
||||
/// </summary>
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
class ImportFont
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Imports the font file.
|
||||
/// </summary>
|
||||
|
||||
@@ -13,14 +13,12 @@
|
||||
class ImportIES
|
||||
{
|
||||
private:
|
||||
|
||||
float _brightness = 0;
|
||||
Array<float> _hAngles;
|
||||
Array<float> _vAngles;
|
||||
Array<float> _candalaValues;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Loads the IES file.
|
||||
/// </summary>
|
||||
@@ -36,7 +34,6 @@ public:
|
||||
float ExtractInR16(Array<byte>& output);
|
||||
|
||||
public:
|
||||
|
||||
uint32 GetWidth() const
|
||||
{
|
||||
return 256;
|
||||
@@ -53,7 +50,6 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
float InterpolatePoint(int32 x, int32 y) const;
|
||||
float InterpolateBilinear(float x, float y) const;
|
||||
static float ComputeFilterPos(float value, const Array<float>& sortedValues);
|
||||
|
||||
@@ -19,11 +19,9 @@
|
||||
class ImportModelFile
|
||||
{
|
||||
public:
|
||||
|
||||
typedef ModelTool::Options Options;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Tries the get model import options from the target location asset.
|
||||
/// </summary>
|
||||
@@ -47,7 +45,6 @@ public:
|
||||
static CreateAssetResult Create(CreateAssetContext& context);
|
||||
|
||||
private:
|
||||
|
||||
static CreateAssetResult ImportModel(CreateAssetContext& context, ModelData& modelData, const Options* options = nullptr);
|
||||
static CreateAssetResult ImportSkinnedModel(CreateAssetContext& context, ModelData& modelData, const Options* options = nullptr);
|
||||
static CreateAssetResult ImportAnimation(CreateAssetContext& context, ModelData& modelData, const Options* options = nullptr);
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
class ImportModelFile
|
||||
{
|
||||
public:
|
||||
|
||||
typedef ModelTool::Options Options;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Tries the get model import options from the target location asset.
|
||||
/// </summary>
|
||||
@@ -48,7 +46,6 @@ public:
|
||||
static CreateAssetResult Create(CreateAssetContext& context);
|
||||
|
||||
private:
|
||||
|
||||
static CreateAssetResult ImportModel(CreateAssetContext& context, ModelData& modelData);
|
||||
static CreateAssetResult ImportSkinnedModel(CreateAssetContext& context, ModelData& modelData);
|
||||
static CreateAssetResult ImportAnimation(CreateAssetContext& context, ModelData& modelData);
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
class ImportShader
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Imports the shader file.
|
||||
/// </summary>
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
class ImportTexture
|
||||
{
|
||||
public:
|
||||
|
||||
typedef TextureTool::Options Options;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Tries the get texture import options from the target location asset.
|
||||
/// </summary>
|
||||
@@ -93,7 +91,6 @@ public:
|
||||
static CreateAssetResult ImportIES(CreateAssetContext& context);
|
||||
|
||||
private:
|
||||
|
||||
static void InitOptions(CreateAssetContext& context, Options& options);
|
||||
static CreateAssetResult Create(CreateAssetContext& context, const TextureData& textureData, Options& options);
|
||||
static CreateAssetResult Create(CreateAssetContext& context, const TextureBase::InitData& textureData, Options& options);
|
||||
|
||||
@@ -31,11 +31,9 @@ typedef Function<CreateAssetResult(CreateAssetContext&)> CreateAssetFunction;
|
||||
class CreateAssetContext : public NonCopyable
|
||||
{
|
||||
private:
|
||||
|
||||
CreateAssetResult _applyChangesResult;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Path of the input file (may be empty if creating new asset)
|
||||
/// </summary>
|
||||
@@ -70,7 +68,6 @@ public:
|
||||
// TODO: add cancellation feature - so progress can be aborted on demand
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CreateAssetContext"/> class.
|
||||
/// </summary>
|
||||
@@ -88,7 +85,6 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Runs the specified callback.
|
||||
/// </summary>
|
||||
@@ -97,7 +93,6 @@ public:
|
||||
CreateAssetResult Run(const CreateAssetFunction& callback);
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Allocates the chunk in the output data so upgrader can write to it.
|
||||
/// </summary>
|
||||
@@ -112,7 +107,6 @@ public:
|
||||
void AddMeta(JsonWriter& writer) const;
|
||||
|
||||
private:
|
||||
|
||||
void ApplyChanges();
|
||||
};
|
||||
|
||||
@@ -122,7 +116,6 @@ private:
|
||||
struct AssetImporter
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Extension of the file to import with that importer (without leading dot).
|
||||
/// </summary>
|
||||
@@ -145,7 +138,6 @@ public:
|
||||
struct AssetCreator
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Asset creators are identifiable by tag
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user