public FirstZonePacket(UInt32 secureKey, UInt32 sequenceID, UnionTypes unionType) { this.Signature = ZonePacket.ZONE_SIGNATURE; this.UnionType = (Int32)unionType; this.SecureKey = secureKey; this.SequenceID = sequenceID; }
private static Variant CreateVariant(ushort vt, UnionTypes union) { var variant = new Variant(); variant.m_Variant.vt = vt; variant.m_Variant._unionTypes = union; return(variant); }
public override void EditorGUI() { base.EditorGUI(); UnionType = (UnionTypes)EditorGUILayout.EnumPopup(UnionType); if (UnionType == UnionTypes.Soft) { ExtraParam1 = EditorGUILayout.FloatField(ExtraParam1); } }
protected override void _Deserialize(BinaryReader reader) { base._Deserialize(reader); UnionType = (UnionTypes)reader.ReadByte(); ExtraParam1 = reader.ReadSingle(); }