This commit is contained in:
aozhiwei 2023-03-27 13:22:09 +08:00
parent 04fa411adf
commit d9898873d9
2 changed files with 7 additions and 1 deletions

View File

@ -38,7 +38,7 @@ namespace mc
void Collider::Read(std::shared_ptr<a8::XObject> xobj)
{
ca_type = xobj->At("ca_type")->AsXValue();
if (ca_type < kCA_Floor || ca_type > kCA_Other) {
if (ca_type < kCA_Floor || ca_type > kCA_End) {
abort();
}
enabled = xobj->At("enabled")->AsXValue();

View File

@ -23,6 +23,12 @@ namespace mc
kCA_Stairs = 4,//楼梯
kCA_Window = 9,//窗,主要为了射击穿透
kCA_Other = 10,//其他,装饰品
kCA_Grass = 19,//草,需要抖动
kCA_Water = 20,//水
kCA_Box = 21,//箱子
kCA_Shield = 22,//盾
kCA_WallShield = 23,//能量盾
kCA_End
};
struct Bounds