AddPokemon() public method

public AddPokemon ( PokemonModel model ) : void
model PokemonModel
return void
コード例 #1
0
ファイル: GameModeModel.cs プロジェクト: JoNMii/Pokemon3D
 private static void ReadDataFolder(GameModeModel gameMode, string folderPath)
 {
     FileSystem.GetFiles(Path.Combine(folderPath, FolderNameData, FolderNameMoves), f => gameMode.AddMove(DataModel <MoveModel> .FromFile(f)));
     FileSystem.GetFiles(Path.Combine(folderPath, FolderNameData, FolderNamePokemon), f => gameMode.AddPokemon(DataModel <PokemonModel> .FromFile(f)));
 }
コード例 #2
0
ファイル: GameModeModel.cs プロジェクト: nilllzz/Pokemon3D
 private static void ReadDataFolder(GameModeModel gameMode, string folderPath)
 {
     FileSystem.GetFiles(Path.Combine(folderPath, FolderNameData, FolderNameMoves), f => gameMode.AddMove(DataModel<MoveModel>.FromFile(f)));
     FileSystem.GetFiles(Path.Combine(folderPath, FolderNameData, FolderNamePokemon), f => gameMode.AddPokemon(DataModel<PokemonModel>.FromFile(f)));
 }