- added named RNG support to FxFunctionCall.
This looks simpler than duplicating all that stuff and avoids a lot code duplication.
This commit is contained in:
parent
55f6661c87
commit
d6ce60f63a
4 changed files with 29 additions and 9 deletions
|
|
@ -894,11 +894,12 @@ typedef TDeletingArray<FxExpression*> FArgumentList;
|
|||
class FxFunctionCall : public FxExpression
|
||||
{
|
||||
FName MethodName;
|
||||
FRandom *RNG;
|
||||
FArgumentList *ArgList;
|
||||
|
||||
public:
|
||||
|
||||
FxFunctionCall(FName methodname, FArgumentList *args, const FScriptPosition &pos);
|
||||
FxFunctionCall(FName methodname, FName rngname, FArgumentList *args, const FScriptPosition &pos);
|
||||
~FxFunctionCall();
|
||||
FxExpression *Resolve(FCompileContext&);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue