mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 13:33:13 +00:00
VarList
This commit is contained in:
@ -317,6 +317,11 @@ public static class DataSerializer
|
||||
var resource = (IResource)value;
|
||||
var rt = new byte[4];
|
||||
|
||||
if (resource.Instance == null || resource.Instance.IsDestroyed)
|
||||
{
|
||||
return (TransmissionTypeIdentifier.Null, new byte[0]);
|
||||
}
|
||||
|
||||
if (Codec.IsLocalResource(resource, connection))
|
||||
{
|
||||
|
||||
@ -327,9 +332,13 @@ public static class DataSerializer
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//rt.Append((value as IResource).Instance.Template.ClassId, (value as IResource).Instance.Id);
|
||||
connection.cache.Add(value as IResource, DateTime.UtcNow);
|
||||
|
||||
|
||||
Console.WriteLine("Adding to cache " + resource.Instance.Id);
|
||||
|
||||
fixed (byte* ptr = rt)
|
||||
*((uint*)ptr) = resource.Instance.Id;
|
||||
|
||||
|
Reference in New Issue
Block a user