Ejemplo n.º 1
0
 private async Task MakeThing(IPlayerGrain player, Thing thing)
 {
     //IRoomGrain roomGrain = await player.GetRoomGrainByRoomId(thing.FoundIn);
     IRoomGrain roomGrain = GrainFactory.GetGrain<IRoomGrain>(player.GetPrimaryKey().ToString() + "Room" + thing.FoundIn);
     await roomGrain.Drop(thing);
 }
Ejemplo n.º 2
0
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     AdventureTerreInterfaces.Models.Thing result = new AdventureTerreInterfaces.Models.Thing();
     result.Category = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     result.CommandActions = ((List<CommandAction>)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(List<CommandAction>), stream)));
     result.Descriptors = ((List<Descriptor>)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(List<Descriptor>), stream)));
     result.FoundIn = ((Int64)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(Int64), stream)));
     result.Id = ((Int64)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(Int64), stream)));
     result.Name = ((String)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(String), stream)));
     return result;
 }