Exemplo n.º 1
0
 public static void Append(this ViOStream OS, LogicAuraValueArray value)
 {
     OS.Append(value.Element0);
     OS.Append(value.Element1);
     OS.Append(value.Element2);
     OS.Append(value.Element3);
 }
Exemplo n.º 2
0
 public static void Append <TReceiveKey, TProteKey, TReceiveData, TProtoData>(this ViOStream OS, ViReceiveDataDictionary <TReceiveKey, TProteKey, TReceiveData, TProtoData> value)
     where TReceiveKey : ViReceiveDataKeyInterface, new()
     where TReceiveData : ViReceiveDataNode, new()
 {
     ViDebuger.Error("ViReceiveDataDictionarySerialize未实现代码");
     //value.Update();
 }
Exemplo n.º 3
0
 public static void Append(this ViOStream OS, LogicAuraProperty value)
 {
     OS.Append(value.SpellID);
     OS.Append(value.EffectIdx);
     OS.Append(value.EndTime);
     OS.Append(value.CastorValue);
     OS.Append(value.Value);
 }
Exemplo n.º 4
0
    public static void Append <TEntity>(ViOStream OS, List <TEntity> list) where TEntity : ViEntity
    {
        ViArrayIdx size = (ViArrayIdx)list.Count;

        OS.Append(size);
        foreach (TEntity value in list)
        {
            OS.Append(value);
        }
    }
Exemplo n.º 5
0
    public static void Append(this ViOStream OS, List <LogicAuraProperty> list)
    {
        ViArrayIdx size = (ViArrayIdx)list.Count;

        OS.Append(size);
        foreach (LogicAuraProperty value in list)
        {
            OS.Append(value);
        }
    }
Exemplo n.º 6
0
    public static void Append(this ViOStream OS, List <UInt16> list)
    {
        ViArrayIdx size = (ViArrayIdx)list.Count;

        OS.Append(size);
        foreach (UInt16 value in list)
        {
            OS.Append(value);
        }
    }
Exemplo n.º 7
0
 public static void Append <TEntity>(ViOStream OS, TEntity value) where TEntity : ViEntity
 {
     if (value != null)
     {
         OS.Append(value.ID);
     }
     else
     {
         ViEntityID id = 0;
         OS.Append(id);
     }
 }
Exemplo n.º 8
0
    public void Exception(ViRPCEntity entity)
    {
        if (_CBID == 0)
        {
            ViDebuger.Warning("ViRPCCallback: Exception Invalid");
            return;
        }
        ViOStream oStream = entity.RPC.OS;
        UInt16    funcIdx = (UInt16)ViRPCMessage.EXEC_EXCEPTION;

        oStream.Append(funcIdx);
        oStream.Append(_CBID);
        entity.RPC.SendMessage();
        _CBID = 0;
    }
Exemplo n.º 9
0
    public static void Invoke(this ViRPCCallback <Int16> callback, ViRPCEntity entity, Int16 value)
    {
        if (callback.ID == 0)
        {
            ViDebuger.Warning("ViRPCCallback<Int16>: Invoke Invalid");
            return;
        }
        ViOStream oStream   = entity.RPC.OS;
        UInt16    uiFuncIdx = (UInt16)ViRPCMessage.EXEC_RESULT;

        oStream.Append(uiFuncIdx);
        oStream.Append(callback.ID);
        oStream.Append(value);
        entity.RPC.SendMessage();
        callback.ID = 0;
    }
Exemplo n.º 10
0
 public static void Append(this ViOStream OS, ViEntity value)
 {
     OS.Append(value.ID);
 }
Exemplo n.º 11
0
 public static void Append(this ViOStream OS, ViVector3 value)
 {
     OS.Append(value.x);
     OS.Append(value.y);
     OS.Append(value.z);
 }
Exemplo n.º 12
0
 public static void Append <T, L>(this ViOStream OS, ViReceiveDataArray <T, L> value)
     where T : ViReceiveDataNode, new()
 {
     ViDebuger.Error("ViReceiveDataArraySerialize未实现代码");
     //value.Update();
 }
Exemplo n.º 13
0
 public static void Append <TReceiveKey, TProteKey>(this ViOStream OS, ViReceiveDataSet <TReceiveKey, TProteKey> value)
     where TReceiveKey : ViReceiveDataKeyInterface, new()
 {
     ViDebuger.Error("ViReceiveDataSetSerialize未实现代码");
     //value.Update();
 }
Exemplo n.º 14
0
 public static void Append(this ViOStream OS, VisualAuraProperty value)
 {
     OS.Append(value.SpellID);
     OS.Append(value.EffectIdx);
     OS.Append(value.EndTime);
 }
Exemplo n.º 15
0
 public static void Append(this ViOStream OS, List <ViGameUnit> list)
 {
     ViEntitySerialize.Append(OS, list);
 }
Exemplo n.º 16
0
 public static void Append(this ViOStream OS, ViGameUnit value)
 {
     ViEntitySerialize.Append(OS, value);
 }
Exemplo n.º 17
0
 public static void Append(this ViOStream OS, ViReceiveDataInt8 value)
 {
     OS.Append(value);
 }
Exemplo n.º 18
0
 public static void Append(this ViOStream OS, ViReceiveDataEvent value)
 {
     ViDebuger.Error("");
 }