示例#1
0
        async Task <string> ICharacterGrain.Response(IGameStateGrain gameState)
        {
            var obj = await GrainHelper.GetDescriptorForState(gameState, State.npcInfo.Responses, State.playerGrain);

            return(this.State.npcInfo.Name + " says\n\t" + obj.ToString());
        }
示例#2
0
 Task <string> ICharacterGrain.Description(IGameStateGrain gameState)
 {
     return(GrainHelper.GetDescriptorForState(gameState, State.npcInfo.Descriptors, State.playerGrain));
 }