当前位置: 首页>>代码示例>>C#>>正文


C# Creature.Is方法代码示例

本文整理汇总了C#中Aura.Channel.World.Entities.Creature.Is方法的典型用法代码示例。如果您正苦于以下问题:C# Creature.Is方法的具体用法?C# Creature.Is怎么用?C# Creature.Is使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Aura.Channel.World.Entities.Creature的用法示例。


在下文中一共展示了Creature.Is方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddCreatureInfo


//.........这里部分代码省略.........
            else
            {
                packet.PutString("");

                if (type == CreaturePacketType.Private)
                {
                    packet.PutInt(0);
                    packet.PutLong(0);
                    packet.PutLong(0);
                    packet.PutByte(0);
                    packet.PutByte(0);
                    packet.PutLong(0);
                    packet.PutByte(0);
                    packet.PutLong(0);
                    packet.PutLong(0);
                    packet.PutByte(0);
                }
                else if (type == CreaturePacketType.Public)
                {
                    packet.PutLong(0);
                    packet.PutByte(0);
                    packet.PutLong(0);
                }
            }

            // House
            // --------------------------------------------------------------
            if (type == CreaturePacketType.Private)
                packet.PutLong(0);				 // HouseID

            // Taming
            // --------------------------------------------------------------
            packet.PutLong(0);					 // MasterID
            packet.PutByte(0);					 // IsTamed
            packet.PutByte(0);					 // TamedType (1:DarkKnightTamed, 2:InstrumentTamed, 3:AnimalTraining, 4:MercenaryTamed, 5:Recalled, 6:SoulStoneTamed, 7:TamedFriend)
            packet.PutByte(1);					 // IsMasterMode
            packet.PutInt(0);					 // LimitTime

            // Vehicle
            // --------------------------------------------------------------
            packet.PutInt(0);					 // Type
            packet.PutInt(0);					 // TypeFlag (0x1:Driver, 0x4:Owner)
            packet.PutLong(0);					 // VehicleId
            packet.PutInt(0);					 // SeatIndex
            packet.PutByte(0);					 // PassengerList
            // loop
            //   packet.PutLong

            // Showdown
            // --------------------------------------------------------------
            packet.PutInt(0);	                 // unknown at 0x18
            packet.PutLong(0);                   // unknown at 0x08
            packet.PutLong(0);	                 // unknown at 0x10
            packet.PutByte(1);	                 // IsPartyPvpDropout

            // Transport
            // --------------------------------------------------------------
            packet.PutLong(0);					 // TransportID
            packet.PutInt(0);					 // HuntPoint

            // Aviation
            // --------------------------------------------------------------
            packet.PutByte(0); // --v
            //packet.PutByte(creature.IsFlying);
            //if (creature.IsFlying)
            //{
开发者ID:pie3467,项目名称:aura,代码行数:67,代码来源:Send.Adds.cs


注:本文中的Aura.Channel.World.Entities.Creature.Is方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。