예제 #1
0
 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);
        }
예제 #3
0
        public override void EditorGUI()
        {
            base.EditorGUI();

            UnionType = (UnionTypes)EditorGUILayout.EnumPopup(UnionType);
            if (UnionType == UnionTypes.Soft)
            {
                ExtraParam1 = EditorGUILayout.FloatField(ExtraParam1);
            }
        }
예제 #4
0
 protected override void _Deserialize(BinaryReader reader)
 {
     base._Deserialize(reader);
     UnionType   = (UnionTypes)reader.ReadByte();
     ExtraParam1 = reader.ReadSingle();
 }