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


C# VRage.addBoolean方法代码示例

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


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

示例1: AddToByteStream

 public void AddToByteStream(VRage.ByteStream stream)
 {
     stream.addLong(EntityId);
     stream.addUShort((ushort)Type);
     stream.addVector3D(Position);
     stream.addBoolean(Transparent);
     stream.addBoolean(IsStatic);
     stream.addUShort((ushort)Revealability);
     stream.addUShort((ushort)Concealability);
     stream.addUShort((ushort)Status);
 }
开发者ID:HaoTNN,项目名称:GardenPerformance,代码行数:11,代码来源:ConcealableEntity.cs

示例2: AddToByteStream

 // Byte Serialization
 public override void AddToByteStream(VRage.ByteStream stream)
 {
     base.AddToByteStream(stream);
     UpdateConcealabilityManual();
     stream.addBoolean(IsObserved);
     stream.addBoolean(IsRevealBlocked);
     stream.addLongList(EntitiesViewedBy.Keys.ToList());
     stream.addDateTime(RevealedAt);
 }
开发者ID:zrisher,项目名称:GardenPerformance,代码行数:10,代码来源:RevealedEntity.cs

示例3: Response

 /*
 public Response(VRage.ByteStream stream, ushort typeId = (ushort)MessageType.RequestBase) :
     base((ushort)MessageDomain.ConcealClient, typeId) { }
 */
 protected void AddToByteStream(VRage.ByteStream stream)
 {
     stream.addBoolean(ServerRunning);
 }
开发者ID:zrisher,项目名称:GardenPerformance,代码行数:8,代码来源:Response.cs

示例4: AddToByteStream

 // Byte Serialization
 public override void AddToByteStream(VRage.ByteStream stream)
 {
     base.AddToByteStream(stream);
     stream.addBoolean(IsMoving);
     stream.addBoolean(RecentlyMoved);
     stream.addDateTime(RecentlyMovedEnds);
 }
开发者ID:zrisher,项目名称:GardenPerformance,代码行数:8,代码来源:ControllableEntity.cs

示例5: serialize

        public void serialize(VRage.ByteStream stream)
        {
            stream.addBoolean(SupportedByFleet);
            stream.addLong(Grid.EntityId);
            stream.addUShort((ushort)m_EffectiveClass);
            stream.addString(Grid.DisplayName);
            stream.addUShort((ushort)BlockCount);

            // Serialize position data if the owner of the grid
            if (Grid.canInteractWith(Owner.PlayerID)) {
                stream.addBoolean(true);
                stream.addLong((long)Grid.GetPosition().X);
                stream.addLong((long)Grid.GetPosition().Y);
                stream.addLong((long)Grid.GetPosition().Z);
            }
            else {
                stream.addBoolean(false);
            }
        }
开发者ID:Devlah,项目名称:GardenConquest,代码行数:19,代码来源:GridEnforcer.cs

示例6: serialize

        public void serialize(VRage.ByteStream stream)
        {
            stream.addString(DisplayName);
            stream.addUShort((ushort)MaxPerFaction);
            stream.addUShort((ushort)MaxPerSoloPlayer);
            stream.addUShort((ushort)CaptureMultiplier);
            stream.addLong(MaxBlocks);
            stream.addBoolean(ShouldBeStation);

            stream.addUShort((ushort)BlockTypeLimits.Length);
            foreach (int limit in BlockTypeLimits) {
                stream.addUShort((ushort)limit);
            }
        }
开发者ID:MrZSFG,项目名称:GardenConquest,代码行数:14,代码来源:HullRuleSet.cs

示例7: AddToByteStream

        // Byte Serialization
        public virtual void AddToByteStream(VRage.ByteStream stream)
        {
            base.AddToByteStream(stream);

            Log.Trace("Adding Revealed Grid to byte stream", "AddToByteStream");

            if (SpawnOwners == null) {
                Log.Error("Serializing with null spawnowners", "AddToByteStream");
                SpawnOwners = new List<long>();
            }

            if (BigOwners == null) {
                Log.Error("Serializing with null BigOwners", "AddToByteStream");
                BigOwners = new List<long>();
            }

            Log.Info("Adding spawnowners ", "FromBytes");
            stream.addLongList(SpawnOwners);
            Log.Info("Adding BigOwners ", "FromBytes");
            stream.addLongList(BigOwners);
            stream.addBoolean(NeededForSpawn);
            stream.addBoolean(IsProducing);
            stream.addBoolean(IsChargingBatteries);
            stream.addBoolean(IsPiloted);
        }
开发者ID:zrisher,项目名称:GardenPerformance,代码行数:26,代码来源:RevealedGrid.cs

示例8: AddToByteStream

 // Byte Serialization
 public virtual void AddToByteStream(VRage.ByteStream stream)
 {
     UpdateRevealabilityManual();
     stream.addUShort((ushort)TypeOfEntity);
     stream.addLong(EntityId);
     stream.addVector3D(Position);
     // Clients don't need AABB details
     stream.addBoolean(IsRevealBlocked);
     stream.addBoolean(IsObserved);
 }
开发者ID:zrisher,项目名称:GardenPerformance,代码行数:11,代码来源:ConcealedEntity.cs

示例9: AddToByteStream

 // Byte Serialization
 public void AddToByteStream(VRage.ByteStream stream)
 {
     stream.addUlong(ControlledMovingGraceTimeSeconds);
     stream.addUlong(ControlledMovementGraceDistanceMeters);
     stream.addUlong(RevealVisibilityMeters);
     //RevealDetectabilityMeters = 10; //50;
     //RevealCommunicationMeters = 10; //50;
     //RevealCollisionMeters = 10; //10;
     stream.addBoolean(ConcealNearAsteroids);
 }
开发者ID:zrisher,项目名称:GardenPerformance,代码行数:11,代码来源:Settings.cs


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