The-Powder-Toy/src/simulation/StructProperty.h

32 lines
464 B
C
Raw Normal View History

#ifndef STRUCTPROPERTY_H_
#define STRUCTPROPERTY_H_
#include <string>
#include <stdint.h>
struct StructProperty
{
enum PropertyType { ParticleType, Colour, Integer, UInteger, Float, String, Char, UChar };
std::string Name;
PropertyType Type;
intptr_t Offset;
StructProperty(std::string name, PropertyType type, intptr_t offset):
Name(name),
Type(type),
Offset(offset)
{
}
2012-08-30 11:09:27 -05:00
StructProperty():
Name(""),
Type(Char),
Offset(0)
{
}
};
#endif