Esempio n. 1
0
 public override void Read(ES2Reader reader, object c)
 {
     Devdog.InventoryPro.StatDecoratorSerializationModel data = (Devdog.InventoryPro.StatDecoratorSerializationModel)c;
     // Add your reader.Read calls here to read the data into the object.
     data.statID       = reader.Read <System.Int32>();
     data.value        = reader.Read <System.String>();
     data.actionEffect = reader.Read <Devdog.InventoryPro.StatDecorator.ActionEffect>();
     data.isFactor     = reader.Read <System.Boolean>();
 }
Esempio n. 2
0
 public override void Write(object obj, ES2Writer writer)
 {
     Devdog.InventoryPro.StatDecoratorSerializationModel data = (Devdog.InventoryPro.StatDecoratorSerializationModel)obj;
     // Add your writer.Write calls here.
     writer.Write(data.statID);
     writer.Write(data.value);
     writer.Write(data.actionEffect);
     writer.Write(data.isFactor);
 }
Esempio n. 3
0
 public override object Read(ES2Reader reader)
 {
     Devdog.InventoryPro.StatDecoratorSerializationModel data = new Devdog.InventoryPro.StatDecoratorSerializationModel();
     Read(reader, data);
     return(data);
 }