2022-07-03 11:57:43 -04:00
|
|
|
#include "sitypes.h"
|
|
|
|
|
|
|
|
namespace si {
|
|
|
|
|
|
|
|
const char *MxOb::GetTypeName(Type type)
|
|
|
|
{
|
|
|
|
switch (type) {
|
2022-07-11 04:48:20 -04:00
|
|
|
case Video:
|
2022-07-03 11:57:43 -04:00
|
|
|
return "SMK";
|
2022-07-11 04:48:20 -04:00
|
|
|
case Sound:
|
2022-07-03 11:57:43 -04:00
|
|
|
return "WAV";
|
|
|
|
case Presenter:
|
|
|
|
return "MxPresenter";
|
2022-07-17 19:25:06 -04:00
|
|
|
case Bitmap:
|
2022-07-03 11:57:43 -04:00
|
|
|
return "BMP";
|
2022-07-17 19:25:06 -04:00
|
|
|
case Object:
|
2022-07-03 11:57:43 -04:00
|
|
|
return "3D Object";
|
|
|
|
case World:
|
|
|
|
return "World";
|
|
|
|
case Event:
|
|
|
|
return "Event";
|
|
|
|
case Animation:
|
|
|
|
return "Animation";
|
2022-07-17 19:25:06 -04:00
|
|
|
case Null:
|
2022-07-03 11:57:43 -04:00
|
|
|
case TYPE_COUNT:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return "Unknown";
|
|
|
|
}
|
|
|
|
|
2022-07-04 13:59:47 -04:00
|
|
|
std::vector<const char*> MxOb::GetFlagsName(Flags flags)
|
|
|
|
{
|
|
|
|
std::vector<const char*> names;
|
|
|
|
|
|
|
|
if (flags == FLAGS_COUNT) {
|
|
|
|
return names;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (flags & Transparent) {
|
|
|
|
names.push_back("Transparent");
|
|
|
|
}
|
|
|
|
if (flags & NoLoop) {
|
|
|
|
names.push_back("NoLoop");
|
|
|
|
}
|
|
|
|
if (flags & LoopCache) {
|
|
|
|
names.push_back("LoopCache");
|
|
|
|
}
|
|
|
|
if (flags & LoopStream) {
|
|
|
|
names.push_back("LoopStream");
|
|
|
|
}
|
|
|
|
if (flags & Unknown) {
|
|
|
|
names.push_back("Unknown");
|
|
|
|
}
|
|
|
|
|
|
|
|
return names;
|
|
|
|
}
|
|
|
|
|
2022-07-03 11:57:43 -04:00
|
|
|
}
|