| 1380 | } |
| 1381 | |
| 1382 | int GameObjectPool::ParticleSetEmission(lua_State* L)LNOEXCEPT |
| 1383 | { |
| 1384 | if (!lua_istable(L, 1)) |
| 1385 | return luaL_error(L, "invalid lstg object for 'ParticleGetEmission'."); |
| 1386 | lua_rawgeti(L, 1, 2); // t(object) ??? id |
| 1387 | size_t id = (size_t)luaL_checkinteger(L, -1); |
| 1388 | lua_pop(L, 1); |
| 1389 | |
| 1390 | GameObject* p = m_ObjectPool.Data(id); |
| 1391 | if (!p) |
| 1392 | return luaL_error(L, "invalid lstg object for 'ParticleGetEmission'."); |
| 1393 | if (!p->res || p->res->GetType() != ResourceType::Particle) |
| 1394 | { |
| 1395 | LWARNING("ParticleSetEmission: ��ͼ����һ�����������ӷ������Ķ�������ӷ����ܶ�(uid=%d)", m_iUid); |
| 1396 | return 0; |
| 1397 | } |
| 1398 | p->ps->SetEmission((float)::max(0., luaL_checknumber(L, 2))); |
| 1399 | return 0; |
| 1400 | } |
| 1401 | |
| 1402 | void GameObjectPool::DrawGroupCollider(f2dGraphics2D* graph, f2dGeometryRenderer* grender, int groupId, fcyColor fillColor) |
| 1403 | { |
nothing calls this directly
no test coverage detected