Exemplo n.º 1
0
        public CreateGameResult CreateGame(CreateGameParam param)
        {
            if (!param.SavedGame.Exists)
            {
                throw new YAGMRCException(param.SavedGame + Environment.NewLine + "does not exists");
            }
            IStorage storage        = param.CreateStorage.Create();
            FileInfo dbfileToUpload = CreateDBFile(param.Game, storage);
            var      storageResult  = storage.Upload(param.Game, dbfileToUpload, param.SavedGame);

            return(storageResult);
        }
Exemplo n.º 2
0
 public GameActor(ClusterNodeContext clusterContext, long id, CreateGameParam param)
 {
     _logger         = LogManager.GetLogger($"GameActor({id})");
     _clusterContext = clusterContext;
     _id             = id;
 }