-
Notifications
You must be signed in to change notification settings - Fork 15
/
Thing.cs
43 lines (39 loc) · 1.1 KB
/
Thing.cs
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using Orleans.Concurrency;
using System;
using System.Collections.Generic;
namespace AdventureGrainInterfaces
{
[Immutable]
public class Thing
{
public long Id { get; set; }
public string Name { get; set; }
public string Category { get; set; }
public long FoundIn { get; set; }
public List<String> Commands { get; set; }
}
[Immutable]
public class MapInfo
{
public string Name { get; set; }
public List<RoomInfo> Rooms { get; set; }
public List<CategoryInfo> Categories { get; set; }
public List<Thing> Things { get; set; }
public List<MonsterInfo> Monsters { get; set; }
}
[Immutable]
public class RoomInfo
{
public long Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public Dictionary<string, long> Directions { get; set; }
}
[Immutable]
public class CategoryInfo
{
public long Id { get; set; }
public string Name { get; set; }
public List<String> Commands { get; set; }
}
}