Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f549f81
commit e59f454
Showing
16 changed files
with
64 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
samples/Adventure/AdventureGrainInterfaces/AdventureGrainInterfaces.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Orleans.Core.Abstractions" Version="3.6.0" /> | ||
<PackageReference Include="Microsoft.Orleans.CodeGenerator.MSBuild" Version="3.6.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Orleans.Sdk" Version="7.0.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using Orleans; | ||
|
||
namespace AdventureGrainInterfaces; | ||
|
||
public interface IMonsterGrain : IGrainWithIntegerKey | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using Orleans; | ||
|
||
namespace AdventureGrainInterfaces; | ||
|
||
/// <summary> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using Orleans; | ||
|
||
namespace AdventureGrainInterfaces; | ||
|
||
/// <summary> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
using Orleans.Concurrency; | ||
|
||
namespace AdventureGrainInterfaces; | ||
|
||
[Immutable] | ||
[GenerateSerializer, Immutable] | ||
public record class MonsterInfo( | ||
long Id = 0, | ||
string? Name = null, | ||
List<long>? KilledBy = null); | ||
[property: Id(0)] long Id = 0, | ||
[property: Id(1)] string? Name = null, | ||
[property: Id(2)] List<long>? KilledBy = null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
using Orleans.Concurrency; | ||
|
||
namespace AdventureGrainInterfaces; | ||
|
||
[Immutable] | ||
[GenerateSerializer, Immutable] | ||
public record class PlayerInfo( | ||
Guid Key, | ||
string? Name); | ||
[property: Id(0)] Guid Key, | ||
[property: Id(1)] string? Name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
using Orleans.Concurrency; | ||
|
||
namespace AdventureGrainInterfaces; | ||
|
||
[Immutable] | ||
[GenerateSerializer, Immutable] | ||
public record class Thing( | ||
long Id, | ||
string Name, | ||
string Category, | ||
long FoundIn, | ||
List<string> Commands); | ||
[property: Id(0)] long Id, | ||
[property: Id(1)] string Name, | ||
[property: Id(2)] string Category, | ||
[property: Id(3)] long FoundIn, | ||
[property: Id(4)] List<string> Commands); | ||
|
||
[Immutable] | ||
[GenerateSerializer, Immutable] | ||
public record class MapInfo( | ||
string Name, | ||
List<RoomInfo> Rooms, | ||
List<CategoryInfo> Categories, | ||
List<Thing> Things, | ||
List<MonsterInfo> Monsters); | ||
[property: Id(0)] string Name, | ||
[property: Id(1)] List<RoomInfo> Rooms, | ||
[property: Id(2)] List<CategoryInfo> Categories, | ||
[property: Id(3)] List<Thing> Things, | ||
[property: Id(4)] List<MonsterInfo> Monsters); | ||
|
||
[Immutable] | ||
[GenerateSerializer, Immutable] | ||
public record class RoomInfo( | ||
long Id, | ||
string Name, | ||
string Description, | ||
Dictionary<string, long> Directions); | ||
[property: Id(0)] long Id, | ||
[property: Id(1)] string Name, | ||
[property: Id(2)] string Description, | ||
[property: Id(3)] Dictionary<string, long> Directions); | ||
|
||
[Immutable] | ||
[GenerateSerializer, Immutable] | ||
public record class CategoryInfo( | ||
long Id, | ||
string Name, | ||
List<string> Commands); | ||
[property: Id(0)] long Id, | ||
[property: Id(1)] string Name, | ||
[property: Id(2)] List<string> Commands); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
using System.Text; | ||
using AdventureGrainInterfaces; | ||
using Orleans; | ||
|
||
namespace AdventureGrains; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters