Exemplo n.º 1
0
        public CombatLogEvent(LuaEventArgs eventArgs)
        {
            EventType = eventArgs.EventName;

            BaseArgs = new CombatLogEventBaseArgs
            {
                TimeStamp         = Convert.ToInt32(eventArgs.Args[0]),
                Event             = Convert.ToString(eventArgs.Args[1]),
                SourceUnitId      = UnitManager.GuidToUnitId((string)eventArgs.Args[3]),
                SourceName        = Convert.ToString(eventArgs.Args[4]),
                DestinationUnitId = UnitManager.GuidToUnitId((string)eventArgs.Args[7]),
                DestinationName   = Convert.ToString(eventArgs.Args[8])
            };
        }
Exemplo n.º 2
0
        public CombatLogEvent(LuaEventArgs eventArgs)
        {
            EventType = eventArgs.EventName;

            BaseArgs = new CombatLogEventBaseArgs
            {
                TimeStamp = Convert.ToInt32(eventArgs.Args[0]),
                Event = Convert.ToString(eventArgs.Args[1]),
                SourceUnitId = UnitManager.GuidToUnitId((string) eventArgs.Args[3]),
                SourceName = Convert.ToString(eventArgs.Args[4]),
                DestinationUnitId = UnitManager.GuidToUnitId((string) eventArgs.Args[7]),
                DestinationName = Convert.ToString(eventArgs.Args[8])
            };
        }