public VMRuntimeHeadline(VMSetBalloonHeadlineOperand op, VMEntity targ, VMEntity icon, sbyte index) { Operand = op; Target = targ; IconTarget = icon; Index = index; Duration = (op.DurationInLoops && op.Duration != -1) ? op.Duration * 15 : op.Duration; }
public VMRuntimeHeadline(VMRuntimeHeadlineMarshal input, VMContext context) { Operand = input.Operand; Target = context.VM.GetObjectById(input.Target); IconTarget = context.VM.GetObjectById(input.IconTarget); Index = input.Index; Duration = input.Duration; Anim = input.Anim; }
public void Deserialize(BinaryReader reader) { Operand = new VMSetBalloonHeadlineOperand(); Operand.Read(reader.ReadBytes(8)); Target = reader.ReadInt16(); IconTarget = reader.ReadInt16(); Index = reader.ReadSByte(); Duration = reader.ReadInt32(); Anim = reader.ReadInt32(); }