LeviLamina
Loading...
Searching...
No Matches
MolangProgramBuildState.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Molang::details { class IInstruction; }
8namespace Molang::details { class Program; }
9// clang-format on
10
11namespace Molang::details {
12
14public:
15 // member variables
16 // NOLINTBEGIN
21 // NOLINTEND
22
23public:
24 // prevent constructor by default
28
29public:
30 // member functions
31 // NOLINTBEGIN
32 MCNAPI uint64 allocateInstruction();
33
34 MCNAPI void emplaceInstruction(::std::unique_ptr<::Molang::details::IInstruction> instruction);
35
36 MCNAPI ::Molang::details::Program extractProgram();
37
39 uint64 instructionIndexToPutThisInstruction,
40 uint64 instructionToJumpTo,
41 float mulValue,
42 float addValue
43 );
44
45 MCNAPI uint64 numInstructions() const;
46
47 MCNAPI void popForEachScope(uint64 instructionIndex);
48
49 MCNAPI void popLoopScope(uint64 instructionIndex);
50
51 MCNAPI void pushLoopScope(
52 uint64 loopScopeInitializationInstructionIndex,
53 uint64 loopRepeatLogicInstructionIndex,
54 uint64 loopCleanupInstructionIndex,
55 uint64 nextStatementIndex
56 );
57
58 MCNAPI void pushReturnValue();
59
60 MCNAPI void pushValue(float value);
61
62 MCNAPI void setReturnValue(float value);
63
65 // NOLINTEND
66
67public:
68 // destructor thunk
69 // NOLINTBEGIN
70 MCNAPI void $dtor();
71 // NOLINTEND
72};
73
74} // namespace Molang::details
Definition MolangProgramBuildState.h:13
MCAPI void insertJumpWithMaddAtIndex(uint64 instructionIndexToPutThisInstruction, uint64 instructionToJumpTo, float mulValue, float addValue)
MCAPI void popLoopScope(uint64 instructionIndex)
MCAPI void popForEachScope(uint64 instructionIndex)
MCAPI void pushLoopScope(uint64 loopScopeInitializationInstructionIndex, uint64 loopRepeatLogicInstructionIndex, uint64 loopCleanupInstructionIndex, uint64 nextStatementIndex)
MCAPI::Molang::details::Program extractProgram()
MCAPI void setReturnValue(float value)
MCAPI void emplaceInstruction(::std::unique_ptr<::Molang::details::IInstruction > instruction)
Definition Alias.h:14