File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,8 +156,8 @@ int main()
156156 Ecs_Python_Cmd ( " newSimple.Show( 'once more.' )" );
157157 Ecs_Python_Cmd ( " print('')" );
158158
159- // Use Class Instance From C++
160- // ===========================
159+ // Use The Class Instance From C++
160+ // ===============================
161161 std::cout << " Ok, " << newSimple.GetLastMessage ().c_str () << std::endl;
162162
163163
@@ -166,17 +166,18 @@ int main()
166166 SimpleFactory simpleFactory;
167167 Ecs_Expose_Object ( &simpleFactory, " simpleFactory" );
168168
169+ // Create A New Class Instance From Python
170+ // =======================================
169171 Ecs_Python_Cmd ( " anotherSimple = Simple( simpleFactory.NewSimple( '\\ 'Allo ' ) )" );
170172 Ecs_Python_Cmd ( " print( anotherSimple.GetLastMessage() + '\\ 'Allo!')" );
171173 Ecs_Python_Cmd ( " simpleFactory.DeleteSimple( anotherSimple() )" );
172174
173- getchar ();
174-
175175
176176 // Finalize EcsPython
177177 // ==================
178178 Ecs_Finalize ();
179179
180+ getchar ();
180181 return 0 ;
181182}
182183
You can’t perform that action at this time.
0 commit comments