Beispiel #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);
 }
 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();
 }
Beispiel #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);
 }
Beispiel #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);
        }
    }
Beispiel #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);
        }
    }
Beispiel #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);
        }
    }
Beispiel #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);
     }
 }
Beispiel #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;
    }
Beispiel #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;
    }
Beispiel #10
0
 public static void Append(this ViOStream OS, ViEntity value)
 {
     OS.Append(value.ID);
 }
Beispiel #11
0
 public static void Append(this ViOStream OS, ViVector3 value)
 {
     OS.Append(value.x);
     OS.Append(value.y);
     OS.Append(value.z);
 }
Beispiel #12
0
 public static void Append <T, L>(this ViOStream OS, ViReceiveDataArray <T, L> value)
     where T : ViReceiveDataNode, new()
 {
     ViDebuger.Error("ViReceiveDataArraySerialize未实现代码");
     //value.Update();
 }
Beispiel #13
0
 public static void Append <TReceiveKey, TProteKey>(this ViOStream OS, ViReceiveDataSet <TReceiveKey, TProteKey> value)
     where TReceiveKey : ViReceiveDataKeyInterface, new()
 {
     ViDebuger.Error("ViReceiveDataSetSerialize未实现代码");
     //value.Update();
 }
Beispiel #14
0
 public static void Append(this ViOStream OS, VisualAuraProperty value)
 {
     OS.Append(value.SpellID);
     OS.Append(value.EffectIdx);
     OS.Append(value.EndTime);
 }
Beispiel #15
0
 public static void Append(this ViOStream OS, List <ViGameUnit> list)
 {
     ViEntitySerialize.Append(OS, list);
 }
Beispiel #16
0
 public static void Append(this ViOStream OS, ViGameUnit value)
 {
     ViEntitySerialize.Append(OS, value);
 }
Beispiel #17
0
 public static void Append(this ViOStream OS, ViReceiveDataInt8 value)
 {
     OS.Append(value);
 }
Beispiel #18
0
 public static void Append(this ViOStream OS, ViReceiveDataEvent value)
 {
     ViDebuger.Error("");
 }