private void RunSimpleContractWithCustomType() { SimpleContractWithCustomType contract = new SimpleContractWithCustomType { Value = FixPoint.FromIntegerValue(200), Position = new Vector2(13, 37) }; Dictionary <byte, object> parameters = _photonMapper.ToDictionary(contract); SimpleContractWithCustomType newContract = _photonMapper.FromDictionary <SimpleContractWithCustomType>(parameters); Console.WriteLine($"----{nameof(SimpleContractWithCustomType)}----"); Console.WriteLine($"Value: '{newContract.Value}'"); Console.WriteLine($"Position: '{newContract.Position}'"); }