INNER CODE UNIT · C

step

acoto87/war1 · src/war_actions.c:1017

        WarUnitActionStep step = actionDef->steps.items[i];
        if (step.type == WAR_ACTION_STEP_WAIT)
            duration += step.param;
    }

    return duration;
}

void wact_setAction(WarContext* context, WarEntity* entity, WarUnitActionType type, bool reset, f32 scale)
{
    NOT_USED(context);

    assert(wu_isUnit(entity));

    WarUnitComponent* unit = we_getUnitComponent(context, entity);

    if (type != WAR_ACTION_TYPE_NONE)
    {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…