-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCNSCodeBlock.cpp
More file actions
28 lines (22 loc) · 911 Bytes
/
Copy pathCNSCodeBlock.cpp
File metadata and controls
28 lines (22 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// CNSCodeBlock.cpp — Code block specialized for CNS output (state / info / command / etc.).
//
// Part of Sourcy — CNS -> Lua compiler for MUGEN-style characters.
// Licensed under the MIT License. See LICENSE in the project root.
//
// Author: Miguel Angel Exposito Sanchez (radexx), 2012.
#include "CNSCodeBlock.h"
#include <string>
CNSCodeBlock::CNSCodeBlock() : m_cnsBlockType(CBT_NONE)
{
}
CNSCodeBlock::CNSCodeBlock(const std::string &id) : CodeBlock(id)
{
}
CNSCodeBlock::CNSCodeBlock(const std::string &id, const std::string &code, CNSCodeBlockType t) : CodeBlock(id, code), m_cnsBlockType(t)
{
}
CNSCodeBlock::CNSCodeBlock(const std::string &id, const std::string &code, CNSCodeBlockType t, int32_t cnsStateId) : CodeBlock(id, code), m_cnsBlockType(t), m_cnsStateId(cnsStateId) {
}
CNSCodeBlock::CNSCodeBlock(const std::string &id, CNSCodeBlockType t) : CodeBlock(id), m_cnsBlockType(t)
{
}