Leviathan  0.8.0.0
Leviathan game engine
Leviathan::ScriptSourceFileData Struct Reference

Represents a section of script source file. More...

#include <ScriptModule.h>

Public Member Functions

DLLEXPORT ScriptSourceFileData (const std::string &file, int line, const std::string &code)
 

Public Attributes

std::string SourceFile
 
int StartLine
 
std::shared_ptr< std::string > SourceCode
 

Detailed Description

Represents a section of script source file.

Definition at line 46 of file ScriptModule.h.

Constructor & Destructor Documentation

◆ ScriptSourceFileData()

DLLEXPORT ScriptSourceFileData::ScriptSourceFileData ( const std::string &  file,
int  line,
const std::string &  code 
)
Parameters
lineThe line to start from. First line in a file is 1

Definition at line 842 of file ScriptModule.cpp.

843  :
844  SourceFile(file),
845  StartLine(line), SourceCode(std::make_shared<std::string>(code))
846 {}
std::shared_ptr< std::string > SourceCode
Definition: ScriptModule.h:57

Member Data Documentation

◆ SourceCode

std::shared_ptr<std::string> Leviathan::ScriptSourceFileData::SourceCode

The source is stored here to allow saving it to a file This being a shared pointer allows for more efficient copying

Definition at line 57 of file ScriptModule.h.

◆ SourceFile

std::string Leviathan::ScriptSourceFileData::SourceFile

Definition at line 52 of file ScriptModule.h.

◆ StartLine

int Leviathan::ScriptSourceFileData::StartLine

Definition at line 53 of file ScriptModule.h.


The documentation for this struct was generated from the following files: