Implements most of the remaining core standard functions
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -38,6 +38,8 @@ namespace Porygon {
|
||||
return false;
|
||||
}
|
||||
for (size_t i = 0; i < parameters.size(); i++){
|
||||
if (_parameterTypes[i]->GetClass() == TypeClass::All)
|
||||
continue;
|
||||
if (parameters[i]->operator!=(_parameterTypes[i].get())){
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace Porygon{
|
||||
Function,
|
||||
UserData,
|
||||
Table,
|
||||
All,
|
||||
};
|
||||
|
||||
class ScriptType{
|
||||
@@ -33,7 +34,7 @@ namespace Porygon{
|
||||
|
||||
virtual ~ScriptType() = default;
|
||||
|
||||
const TypeClass GetClass() const{
|
||||
[[nodiscard]] const TypeClass GetClass() const{
|
||||
return _class;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user