示例#1
0
    private void Call(Obj obj, Int32 ip, Int32 level, Boolean ew, Byte[] additionCommand = null)
    {
        Int32 startID = this.getspw(obj, obj.sx);

        obj.setIntToBuffer(startID, obj.ip);
        Int32 num = obj.wait & Byte.MaxValue | (obj.level & Byte.MaxValue) << 8 | (!ew ? Byte.MaxValue : this.gExec.level & Byte.MaxValue) << 16 | (this.gExec.uid & Byte.MaxValue) << 24;

        obj.setIntToBuffer(startID + 4, num);
        if (ew)
        {
            this.gExec.wait = Byte.MaxValue;
        }
        obj.sx   += 2;
        obj.ip    = ip;
        obj.level = (Byte)level;
        obj.wait  = 0;
        if (additionCommand == null)
        {
            return;
        }
        obj.CallAdditionCommand(additionCommand);
    }
示例#2
0
    private void Call(Obj obj, int ip, int level, bool ew, byte[] additionCommand = null)
    {
        int startID = this.getspw(obj, obj.sx);

        obj.setIntToBuffer(startID, obj.ip);
        int num = obj.wait & byte.MaxValue | (obj.level & byte.MaxValue) << 8 | (!ew ? byte.MaxValue : this.gExec.level & byte.MaxValue) << 16 | (this.gExec.uid & byte.MaxValue) << 24;

        obj.setIntToBuffer(startID + 4, num);
        if (ew)
        {
            this.gExec.wait = byte.MaxValue;
        }
        obj.sx   += 2;
        obj.ip    = ip;
        obj.level = (byte)level;
        obj.wait  = 0;
        if (additionCommand == null)
        {
            return;
        }
        obj.CallAdditionCommand(additionCommand);
    }