File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -156,8 +156,8 @@ int main()
156
156
Ecs_Python_Cmd ( " newSimple.Show( 'once more.' )" );
157
157
Ecs_Python_Cmd ( " print('')" );
158
158
159
- // Use Class Instance From C++
160
- // ===========================
159
+ // Use The Class Instance From C++
160
+ // ===============================
161
161
std::cout << " Ok, " << newSimple.GetLastMessage ().c_str () << std::endl;
162
162
163
163
@@ -166,17 +166,18 @@ int main()
166
166
SimpleFactory simpleFactory;
167
167
Ecs_Expose_Object ( &simpleFactory, " simpleFactory" );
168
168
169
+ // Create A New Class Instance From Python
170
+ // =======================================
169
171
Ecs_Python_Cmd ( " anotherSimple = Simple( simpleFactory.NewSimple( '\\ 'Allo ' ) )" );
170
172
Ecs_Python_Cmd ( " print( anotherSimple.GetLastMessage() + '\\ 'Allo!')" );
171
173
Ecs_Python_Cmd ( " simpleFactory.DeleteSimple( anotherSimple() )" );
172
174
173
- getchar ();
174
-
175
175
176
176
// Finalize EcsPython
177
177
// ==================
178
178
Ecs_Finalize ();
179
179
180
+ getchar ();
180
181
return 0 ;
181
182
}
182
183
You can’t perform that action at this time.
0 commit comments