|
|
|
@ -6,8 +6,9 @@ using System.Threading.Tasks; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine.Events; |
|
|
|
using UnityEngine.Events; |
|
|
|
using UnityEngine.Networking; |
|
|
|
using UnityEngine.Networking; |
|
|
|
|
|
|
|
using UltraCombos.Minions.GirlsRoom.Nav; |
|
|
|
|
|
|
|
|
|
|
|
namespace UltraCombos.Minions.GirlsRoom.Nav |
|
|
|
namespace UltraCombos.Marvel.DrawHeroes |
|
|
|
{ |
|
|
|
{ |
|
|
|
class Config |
|
|
|
class Config |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -180,7 +181,7 @@ namespace UltraCombos.Minions.GirlsRoom.Nav |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var artwork = new Artwork() { serial = data.Serial, painting = painting, signature = signature }; |
|
|
|
var artwork = new Minions.GirlsRoom.Nav.Artwork() { serial = data.Serial, painting = painting, signature = signature }; |
|
|
|
|
|
|
|
|
|
|
|
var folder = Directory.CreateDirectory($"{store_dir.FullName}/{data.Serial}"); |
|
|
|
var folder = Directory.CreateDirectory($"{store_dir.FullName}/{data.Serial}"); |
|
|
|
string painting_path = $"{folder.FullName}/{painting_filename}"; |
|
|
|
string painting_path = $"{folder.FullName}/{painting_filename}"; |
|
|
|
@ -189,7 +190,7 @@ namespace UltraCombos.Minions.GirlsRoom.Nav |
|
|
|
File.WriteAllBytes(signature_path, data.Signature.ToByteArray()); |
|
|
|
File.WriteAllBytes(signature_path, data.Signature.ToByteArray()); |
|
|
|
|
|
|
|
|
|
|
|
last_data = artwork; |
|
|
|
last_data = artwork; |
|
|
|
luggagePrinter.PrintLuggage(artwork); |
|
|
|
//luggagePrinter.PrintLuggage(artwork); |
|
|
|
onPaintingReceived.Invoke(artwork, painting_path, signature_path); |
|
|
|
onPaintingReceived.Invoke(artwork, painting_path, signature_path); |
|
|
|
Log($"Painting {data.Id} is loaded. ({painting.width} x {painting.height})"); |
|
|
|
Log($"Painting {data.Id} is loaded. ({painting.width} x {painting.height})"); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -212,15 +213,18 @@ namespace UltraCombos.Minions.GirlsRoom.Nav |
|
|
|
return Task.FromResult(new DataReply { Result = $"Texture {request.Id} data is delivered with length: {request.Content.Length}." }); |
|
|
|
return Task.FromResult(new DataReply { Result = $"Texture {request.Id} data is delivered with length: {request.Content.Length}." }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
public override Task<Index> GetIndex(Index request, ServerCallContext context) |
|
|
|
public override Task<Index> GetIndex(Index request, ServerCallContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return Task.FromResult(new Index { Id = -1, Serial = "" }); |
|
|
|
return Task.FromResult(new Index { Id = -1, Serial = "" }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override Task<Page> GetPage(Device request, ServerCallContext context) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return Task.FromResult(new Page { Id = "", Serial = "" }); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|