Serialization interfaces (#62)

This commit is contained in:
Leath Cooper 2019-12-30 15:16:35 -05:00 • committed by Kamron Batman
parent 5e2be2d7b6
commit 5c8821b11c
2406 changed files with 10100 additions and 9350 deletions

View file

@ -9,7 +9,7 @@ namespace Server.Engines.Mahjong
Second = Utility.Random(1, 6);
}
public MahjongDices(MahjongGame game, GenericReader reader)
public MahjongDices(MahjongGame game, IGenericReader reader)
{
Game = game;
@ -37,7 +37,7 @@ namespace Server.Engines.Mahjong
$"{from.Name}\t{First}\t{Second}"); // ~1_name~ rolls the dice and gets a ~2_number~ and a ~3_number~!
}
public void Save(GenericWriter writer)
public void Save(IGenericWriter writer)
{
writer.Write(0); // version