| 107 | } |
| 108 | |
| 109 | static void Entity_SetBlockModel(struct Entity* e, const cc_string* model) { |
| 110 | static const cc_string block = String_FromConst("block"); |
| 111 | int raw = Block_Parse(model); |
| 112 | |
| 113 | if (raw == -1) { |
| 114 | /* use default humanoid model */ |
| 115 | e->Model = Models.Human; |
| 116 | } else { |
| 117 | e->ModelBlock = (BlockID)raw; |
| 118 | e->Model = Model_Get(&block); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | void Entity_SetModel(struct Entity* e, const cc_string* model) { |
| 123 | cc_string name, scale; |
no test coverage detected