Skip to content

Commit 4f51cb6

Browse files
author
Blecki
committed
Serializing objects. Players can save their character with the 'save' command.
1 parent a630c3e commit 4f51cb6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1798
-1040
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
22
bin
33
obj
4+
database/serialized
45

56
# mstest test results
67
TestResults

DefaultDatabase/DefaultDatabase.csproj

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,58 +43,58 @@
4343
<Compile Include="Properties\AssemblyInfo.cs" />
4444
</ItemGroup>
4545
<ItemGroup>
46-
<None Include="database\demo-area\admin-ball.mud">
46+
<None Include="database\static\demo-area\admin-ball.mud">
4747
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
4848
</None>
49-
<None Include="database\lists.mud">
49+
<None Include="database\static\lists.mud">
5050
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
5151
</None>
52-
<None Include="database\player.mud">
52+
<None Include="database\static\player.mud">
5353
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
5454
</None>
55-
<None Include="database\grammar.mud">
55+
<None Include="database\static\grammar.mud">
5656
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
5757
</None>
58-
<None Include="database\demo-area\balcony.mud">
58+
<None Include="database\static\demo-area\balcony.mud">
5959
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
6060
</None>
61-
<None Include="database\demo-area\start-room.mud">
61+
<None Include="database\static\demo-area\start-room.mud">
6262
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
6363
</None>
64-
<None Include="database\go.mud">
64+
<None Include="database\static\go.mud">
6565
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
6666
</None>
67-
<None Include="database\drop.mud">
67+
<None Include="database\static\drop.mud">
6868
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
6969
</None>
70-
<None Include="database\object-matcher.mud">
70+
<None Include="database\static\object-matcher.mud">
7171
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
7272
</None>
73-
<None Include="database\move-object.mud">
73+
<None Include="database\static\move-object.mud">
7474
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
7575
</None>
76-
<None Include="database\object.mud">
76+
<None Include="database\static\object.mud">
7777
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
7878
</None>
79-
<None Include="database\get.mud">
79+
<None Include="database\static\get.mud">
8080
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
8181
</None>
82-
<None Include="database\say.mud">
82+
<None Include="database\static\say.mud">
8383
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
8484
</None>
85-
<None Include="database\look.mud">
85+
<None Include="database\static\look.mud">
8686
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
8787
</None>
88-
<None Include="database\matchers.mud">
88+
<None Include="database\static\matchers.mud">
8989
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
9090
</None>
91-
<None Include="database\players\god.mud">
91+
<None Include="database\static\players\god.mud">
9292
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
9393
</None>
94-
<None Include="database\room.mud">
94+
<None Include="database\static\room.mud">
9595
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
9696
</None>
97-
<None Include="database\system.mud">
97+
<None Include="database\static\system.mud">
9898
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
9999
</None>
100100
</ItemGroup>

DefaultDatabase/MudEngine2012.dll

10.5 KB
Binary file not shown.

DefaultDatabase/MudServer.exe

0 Bytes
Binary file not shown.

DefaultDatabase/database/players/god.mud

Lines changed: 0 additions & 4 deletions
This file was deleted.

DefaultDatabase/database/demo-area/start-room.mud renamed to DefaultDatabase/database/static/demo-area/start-room.mud

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,28 @@
5858
)
5959
)
6060

61-
(add-object this "contents" (create *(nop
61+
(add-object this "contents" (make-object *(nop
6262
(prop "short" "dusty rug")
6363
(prop "nouns" ^("rug"))
6464
(prop "adjectives" ^("dusty"))
6565
(prop "description" "It looks like an ordinary rug. Could use some cleaning.")
6666
)))
6767

68-
(add-object this "contents" (create *(nop
68+
(add-object this "contents" (make-object *(nop
6969
(prop "short" "desk")
7070
(prop "nouns" ^("desk"))
7171
(prop "adjectives" ^("ancient" "wooden" "wood"))
7272
(prop "description" *"This desk is made of rough wooden planks crudely joined.\n(on-list this)\n")
7373
(prop "on-get" (lambda "" ^("actor") ^() *(echo actor "You couldn't possible carry that.\n")))
7474
(prop "allow-on" true)
7575

76-
(add-object this "on" (create *(nop
76+
(add-object this "on" (make-object *(nop
7777
(prop "short" "small inkwell")
7878
(prop "nouns" ^("inkwell"))
7979
(prop "adjectives" ^("small"))
8080
)))
8181

82-
(add-object this "on" (create *(nop
82+
(add-object this "on" (make-object *(nop
8383
(prop "short" "quill")
8484
(prop "nouns" ^("quill"))
8585
)))

0 commit comments

Comments
 (0)