Initial commit

This commit is contained in:
Eagle517
2026-01-14 10:27:57 -06:00
commit c1576fee30
11290 changed files with 1552799 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
#ifndef _MATERIALPROPERTYMAP_H_
#define _MATERIALPROPERTYMAP_H_
#ifndef _PLATFORM_H_
#include "platform/platform.h"
#endif
#ifndef _TVECTOR_H_
#include "core/tVector.h"
#endif
#ifndef _SIMBASE_H_
#include "console/simBase.h"
#endif
#ifndef _COLOR_H_
#include "core/color.h"
#endif
class MaterialPropertyMap : public SimObject
{
typedef SimObject Parent;
public:
enum MaterialType {
Default
};
enum MaterialFlags {
None = 0 << 0
};
struct MapEntry {
StringTableEntry name;
StringTableEntry detailMapName;
StringTableEntry environMapName;
MaterialType matType;
U32 matFlags;
float environMapFactor;
S32 sound;
ColorF puffColor[2];
};
public:
MaterialPropertyMap();
~MaterialPropertyMap();
const MapEntry* getMapEntry(StringTableEntry) const;
const MapEntry* getMapEntryFromIndex(S32 index) const;
S32 getIndexFromName(StringTableEntry name) const;
DECLARE_CONOBJECT(MaterialPropertyMap);
// Should only be used by console functions
public:
bool addMapping(const S32, const char**);
//-------------------------------------- Internal interface
private:
MapEntry* getNCMapEntry(StringTableEntry);
//-------------------------------------- Data
private:
Vector<MapEntry> mMapEntries;
};
#endif // _H_MATERIALPROPERTYMAPPING_