Skip to content

Commit

Permalink
GenericDocContext: updated angelscript docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Oct 18, 2023
1 parent 07ed962 commit 181c2f5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/angelscript/Script2Game/GenericDocContextClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ class GenericDocContextClass
bool isTokBool(int offset = 0);
bool isTokKeyword(int offset = 0);
bool isTokComment(int offset = 0);

// Editing functions:

bool insertToken(int offset = 0); //!< Inserts `TokenType::NONE`; @return false if offset is beyond EOF
bool eraseToken(int offset = 0); //!< @return false if offset is beyond EOF

bool setTokString(int offset, const string&in str);
bool setTokFloat(int offset, float val);
bool setTokBool(int offset, bool val);
bool setTokKeyword(int offset, const string&in str);
bool setTokComment(int offset, const string&in str);
bool setTokLineBreak(int offset);
};

/// @} //addtogroup Script2Game
Expand Down

0 comments on commit 181c2f5

Please sign in to comment.