Skip to content

Commit

Permalink
Merge pull request #89 from hexagonrecursion/factory-example
Browse files Browse the repository at this point in the history
improve documentation of factory()
  • Loading branch information
tomangelo2 authored Aug 18, 2024
2 parents fa80847 + 8ef63e2 commit 3d9a0c4
Show file tree
Hide file tree
Showing 8 changed files with 644 additions and 67 deletions.
42 changes: 41 additions & 1 deletion help/cbot/E/factory.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Starts a construction of a bot of a given \l;category\u cbot\category; and runs
\l;Category\u cbot\category; of the robot to construct.

\t;program: \c;\l;string\u cbot\string;\n; (default value: \c;""\n;)
Program that will be run on the bot after factory finishes the construction. This can be either a \l;public\u cbot\public; \l;function\u cbot\function;, a \l;filename\u cbot\file; or raw code.
Program that will be run on the bot after factory finishes the construction. This can be either a \l;public\u cbot\public; \l;function\u cbot\function;, a filename or raw code.

\t;\l;object\u cbot\object;
\l;BotFactory\u object\factory;, nearest by default.
Expand All @@ -18,6 +18,46 @@ Normally an error stops the program. You can prevent the program from stopping o
\c;== 0 \n;The construction successfully started
\c;!= 0 \n;The construction could not be started (e.g. no \l;Titanium\u object\titan; in the factory, the bot is not researched)

\t;Examples

Raw code:
\c;
\s; extern void New()
\s; {
\s; factory(WheeledGrabber, "extern void Say123() { message(123); }");
\s; }
\n;

Public function:
\c;
\s; extern void New()
\s; {
\s; factory(WheeledGrabber, "SayHello");
\s; }
\s;
\s; public void SayHello()
\s; {
\s; message("hello");
\s; }
\n;

File name:

Save this as say-foo.cbot. Note: make sure to check the "Public" checkbox when saving - this will cause say-foo.cbot to be inside the program/ folder.
\c;
\s; extern void New()
\s; {
\s; message("Foo");
\s; }
\n;

Run factory like this:
\c;
\s; extern void New()
\s; {
\s; factory(WheeledGrabber, "program/say-foo.cbot");
\s; }
\n;
\t;See also
\c;\l;researched\u cbot\researched;\n;, \c;\l;wait\u cbot\wait;\n;.
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.
93 changes: 84 additions & 9 deletions help/cbot/po/cbot.pot
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ msgid "Time in seconds."
msgstr ""

#. type: \t; header
#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:25 ../E/buildingenabled.txt:22 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:119 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deflag.txt:12 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extends.txt:105 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flag.txt:19 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:165 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/isbusy.txt:14 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:19 ../E/openfile.txt:11 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:29 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/super.txt:45 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19
#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:25 ../E/buildingenabled.txt:22 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:119 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deflag.txt:12 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extends.txt:105 ../E/extern.txt:29 ../E/factory.txt:61 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flag.txt:19 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:165 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/isbusy.txt:14 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:19 ../E/openfile.txt:11 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:29 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/super.txt:45 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19
#, no-wrap
msgid "See also"
msgstr ""
Expand Down Expand Up @@ -2233,7 +2233,7 @@ msgid "This information also returns the description of a whole object: the desc
msgstr ""

#. type: \t; header, \b; header
#: ../E/expr.txt:99 ../E/expr.txt:123 ../E/expr.txt:145 ../E/expr.txt:170 ../E/expr.txt:187 ../E/object.txt:66
#: ../E/expr.txt:99 ../E/expr.txt:123 ../E/expr.txt:145 ../E/expr.txt:170 ../E/expr.txt:187 ../E/factory.txt:21 ../E/object.txt:66
#, no-wrap
msgid "Examples"
msgstr ""
Expand Down Expand Up @@ -7885,20 +7885,14 @@ msgstr ""
msgid "Starts a construction of a bot of a given <a cbot|category>category</a> and runs a specified program on it after the construction is finished."
msgstr ""

#. type: Plain text
#: ../E/factory.txt:11
#, no-wrap
msgid "Program that will be run on the bot after factory finishes the construction. This can be either a <a cbot|public>public</a> <a cbot|function>function</a>, a <a cbot|file>filename</a> or raw code."
msgstr ""

#. type: Plain text
#: ../E/factory.txt:14
#, no-wrap
msgid "<a object|factory>BotFactory</a>, nearest by default."
msgstr ""

#. type: Plain text
#: ../E/factory.txt:22
#: ../E/factory.txt:62
#, no-wrap
msgid ""
"<code><a cbot|researched>researched</a></code>, <code><a cbot|wait>wait</a></code>.\n"
Expand Down Expand Up @@ -8137,3 +8131,84 @@ msgid ""
"<code>== 0 </code>planted a flag\n"
"<code>!= 0 </code>could not plant a flag"
msgstr ""

#. type: Plain text
#: ../E/factory.txt:11
#, no-wrap
msgid "Program that will be run on the bot after factory finishes the construction. This can be either a <a cbot|public>public</a> <a cbot|function>function</a>, a filename or raw code."
msgstr ""

#. type: Plain text
#: ../E/factory.txt:23
#, no-wrap
msgid "Raw code:"
msgstr ""

#. type: Source code
#: ../E/factory.txt:25
#, no-wrap
msgid ""
" extern void New()\n"
" {\n"
" factory(WheeledGrabber, \"extern void Say123() { message(123); }\");\n"
" }"
msgstr ""

#. type: Plain text
#: ../E/factory.txt:31
#, no-wrap
msgid "Public function:"
msgstr ""

#. type: Source code
#: ../E/factory.txt:33
#, no-wrap
msgid ""
" extern void New()\n"
" {\n"
" factory(WheeledGrabber, \"SayHello\");\n"
" }\n"
"\n"
" public void SayHello()\n"
" {\n"
" message(\"hello\");\n"
" }"
msgstr ""

#. type: Plain text
#: ../E/factory.txt:44
#, no-wrap
msgid "File name:"
msgstr ""

#. type: Plain text
#: ../E/factory.txt:46
#, no-wrap
msgid "Save this as say-foo.cbot. Note: make sure to check the \"Public\" checkbox when saving - this will cause say-foo.cbot to be inside the program/ folder."
msgstr ""

#. type: Source code
#: ../E/factory.txt:48
#, no-wrap
msgid ""
" extern void New()\n"
" {\n"
" message(\"Foo\");\n"
" }"
msgstr ""

#. type: Plain text
#: ../E/factory.txt:54
#, no-wrap
msgid "Run factory like this:"
msgstr ""

#. type: Source code
#: ../E/factory.txt:56
#, no-wrap
msgid ""
" extern void New()\n"
" {\n"
" factory(WheeledGrabber, \"program/say-foo.cbot\");\n"
" }"
msgstr ""
87 changes: 84 additions & 3 deletions help/cbot/po/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ msgid "Time in seconds."
msgstr "Čas v sekundách."

#. type: \t; header
#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:25 ../E/buildingenabled.txt:22 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:119 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deflag.txt:12 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extends.txt:105 ../E/extern.txt:29 ../E/factory.txt:21 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flag.txt:19 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:165 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/isbusy.txt:14 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:19 ../E/openfile.txt:11 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:29 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/super.txt:45 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19
#: ../E/abstime.txt:10 ../E/acos.txt:11 ../E/aim.txt:23 ../E/array.txt:41 ../E/asin.txt:11 ../E/atan.txt:11 ../E/atan2.txt:16 ../E/bloc.txt:48 ../E/bool.txt:4 ../E/break.txt:24 ../E/build.txt:25 ../E/buildingenabled.txt:22 ../E/canbuild.txt:22 ../E/canresearch.txt:14 ../E/category.txt:119 ../E/ceil.txt:12 ../E/class.txt:120 ../E/close.txt:6 ../E/cond.txt:4 ../E/continue.txt:24 ../E/cos.txt:11 ../E/deflag.txt:12 ../E/deletef.txt:9 ../E/delinfo.txt:13 ../E/destroy.txt:15 ../E/detect.txt:27 ../E/direct.txt:13 ../E/dist.txt:29 ../E/dist2d.txt:13 ../E/do.txt:27 ../E/drop.txt:28 ../E/eof.txt:13 ../E/errmode.txt:32 ../E/expr.txt:197 ../E/extends.txt:105 ../E/extern.txt:29 ../E/factory.txt:61 ../E/false.txt:4 ../E/file.txt:16 ../E/fire.txt:30 ../E/flag.txt:19 ../E/flatgrnd.txt:16 ../E/flatspace.txt:25 ../E/float.txt:24 ../E/floor.txt:12 ../E/for.txt:51 ../E/function.txt:165 ../E/goto.txt:34 ../E/grab.txt:28 ../E/if.txt:39 ../E/int.txt:18 ../E/isbusy.txt:14 ../E/jet.txt:14 ../E/message.txt:24 ../E/motor.txt:38 ../E/move.txt:21 ../E/nan.txt:14 ../E/new.txt:20 ../E/null.txt:4 ../E/object.txt:79 ../E/open.txt:19 ../E/openfile.txt:11 ../E/pencolor.txt:14 ../E/pendown.txt:17 ../E/penup.txt:11 ../E/penwidth.txt:14 ../E/point.txt:35 ../E/pointer.txt:51 ../E/pow.txt:14 ../E/private.txt:19 ../E/produce.txt:30 ../E/protected.txt:26 ../E/public.txt:49 ../E/radar.txt:80 ../E/radarall.txt:19 ../E/rand.txt:8 ../E/readln.txt:18 ../E/receive.txt:16 ../E/recycle.txt:12 ../E/research.txt:18 ../E/researched.txt:14 ../E/researches.txt:29 ../E/retobj.txt:13 ../E/return.txt:29 ../E/round.txt:12 ../E/search.txt:25 ../E/send.txt:17 ../E/shield.txt:18 ../E/sin.txt:11 ../E/sizeof.txt:21 ../E/sniff.txt:16 ../E/space.txt:22 ../E/sqrt.txt:11 ../E/static.txt:20 ../E/strfind.txt:18 ../E/string.txt:32 ../E/strleft.txt:14 ../E/strlen.txt:12 ../E/strlower.txt:10 ../E/strmid.txt:18 ../E/strright.txt:14 ../E/strupper.txt:10 ../E/strval.txt:17 ../E/super.txt:45 ../E/switch.txt:70 ../E/synchro.txt:23 ../E/takeoff.txt:15 ../E/tan.txt:11 ../E/term.txt:30 ../E/testinfo.txt:16 ../E/this.txt:52 ../E/thump.txt:12 ../E/topo.txt:13 ../E/true.txt:4 ../E/trunc.txt:12 ../E/turn.txt:32 ../E/type.txt:32 ../E/var.txt:66 ../E/void.txt:10 ../E/wait.txt:21 ../E/while.txt:46 ../E/writeln.txt:19
#, no-wrap
msgid "See also"
msgstr "Užitečné odkazy"
Expand Down Expand Up @@ -2560,7 +2560,7 @@ msgid "This information also returns the description of a whole object: the desc
msgstr "Tento atribut také obsahuje popis jiného objektu: informace o předmětu, který <a object|botgr>robotické rameno</a> drží v drapáku. Pokud nedrží nic, atribut <code>load</code> obsahuje hodnotu <code>null</code>."

#. type: \t; header, \b; header
#: ../E/expr.txt:99 ../E/expr.txt:123 ../E/expr.txt:145 ../E/expr.txt:170 ../E/expr.txt:187 ../E/object.txt:66
#: ../E/expr.txt:99 ../E/expr.txt:123 ../E/expr.txt:145 ../E/expr.txt:170 ../E/expr.txt:187 ../E/factory.txt:21 ../E/object.txt:66
#, no-wrap
msgid "Examples"
msgstr "Příklady"
Expand Down Expand Up @@ -9191,7 +9191,7 @@ msgid "<a object|factory>BotFactory</a>, nearest by default."
msgstr "<a object|factory>Továrna na roboty</a>. Pokud není zadáno, použije se automaticky ta nejbližší."

#. type: Plain text
#: ../E/factory.txt:22
#: ../E/factory.txt:62
#, no-wrap
msgid ""
"<code><a cbot|researched>researched</a></code>, <code><a cbot|wait>wait</a></code>.\n"
Expand Down Expand Up @@ -9463,3 +9463,84 @@ msgstr ""
"Chyba při provádění tohoto příkazu obvykle ukončí program. Tomu můžete zabránit pomocí příkazu <code><a cbot|errmode>errmode</a>(0)</code>. Pak bude příkaz <c/>flag();<n/> v případě chyby vracet nenulovou hodnotu.\n"
"<code>== 0</code> vlajka byla umístěna\n"
"<code>!= 0</code> vlajku se nepodařilo umístit"

#. type: Plain text
#: ../E/factory.txt:11
#, no-wrap
msgid "Program that will be run on the bot after factory finishes the construction. This can be either a <a cbot|public>public</a> <a cbot|function>function</a>, a filename or raw code."
msgstr "Program, který bude spuštěn na robotovi poté, co továrna dokončí stavbu. Může se jednat o <a cbot|public>veřejnou</a> <a cbot|function>funkci</a>, název souboru nebo nezpracovaný kód."

#. type: Plain text
#: ../E/factory.txt:23
#, no-wrap
msgid "Raw code:"
msgstr "Nezpracovaný kód:"

#. type: Source code
#: ../E/factory.txt:25
#, no-wrap
msgid ""
" extern void New()\n"
" {\n"
" factory(WheeledGrabber, \"extern void Say123() { message(123); }\");\n"
" }"
msgstr ""

#. type: Plain text
#: ../E/factory.txt:31
#, no-wrap
msgid "Public function:"
msgstr "Veřejnou funkci:"

#. type: Source code
#: ../E/factory.txt:33
#, no-wrap
msgid ""
" extern void New()\n"
" {\n"
" factory(WheeledGrabber, \"SayHello\");\n"
" }\n"
"\n"
" public void SayHello()\n"
" {\n"
" message(\"hello\");\n"
" }"
msgstr ""

#. type: Plain text
#: ../E/factory.txt:44
#, no-wrap
msgid "File name:"
msgstr "Název souboru:"

#. type: Plain text
#: ../E/factory.txt:46
#, no-wrap
msgid "Save this as say-foo.cbot. Note: make sure to check the \"Public\" checkbox when saving - this will cause say-foo.cbot to be inside the program/ folder."
msgstr "Uložte to jako say-foo.cbot. Poznámka: při ukládání nezapomeňte zaškrtnout políčko \"Veřejný\" - to způsobí, že say-foo.cbot bude uvnitř program/ složky."

#. type: Source code
#: ../E/factory.txt:48
#, no-wrap
msgid ""
" extern void New()\n"
" {\n"
" message(\"Foo\");\n"
" }"
msgstr ""

#. type: Plain text
#: ../E/factory.txt:54
#, no-wrap
msgid "Run factory like this:"
msgstr "Použijte factory funkci takto:"

#. type: Source code
#: ../E/factory.txt:56
#, no-wrap
msgid ""
" extern void New()\n"
" {\n"
" factory(WheeledGrabber, \"program/say-foo.cbot\");\n"
" }"
msgstr ""
Loading

0 comments on commit 3d9a0c4

Please sign in to comment.