added function AqHomeReact_AddUnit().
This commit is contained in:
@@ -162,6 +162,14 @@ AQHREACT_UNIT *AqHomeReact_FindUnitByNetNameAndUnitId(const AQHOME_REACT *aqh, c
|
||||
|
||||
|
||||
|
||||
void AqHomeReact_AddUnit(AQHOME_REACT *aqh, AQHREACT_UNIT *unit)
|
||||
{
|
||||
if (aqh && unit)
|
||||
AQHREACT_Unit_List_Add(unit, aqh->unitList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
AQHREACT_UNIT *AqHomeReact_CreateUnitByName(AQHOME_REACT *aqh, const char *unitType)
|
||||
{
|
||||
/* this does not include u_timer and u_varchanges, because those are only created once globally in init.c */
|
||||
|
||||
Reference in New Issue
Block a user