Exemplo n.º 1
0
		protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
		{
			YAMLMappingNode node = base.ExportYAMLRoot(container);
			node.Add("m_AvatarSize", AvatarSize);
			node.Add("m_Avatar", AvatarConstant.ExportYAML(container));
			node.Add("m_TOS", TOS.ExportYAML());
			return node;
		}
Exemplo n.º 2
0
        protected override YAMLMappingNode ExportYAMLRoot(IAssetsExporter exporter)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(exporter);

            node.Add("m_AvatarSize", AvatarSize);
            node.Add("m_Avatar", AvatarConstant.ExportYAML(exporter));
            node.Add("m_TOS", TOS.ExportYAML());
            return(node);
        }
Exemplo n.º 3
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add(AvatarSizeName, AvatarSize);
            node.Add(AvatarName, AvatarConstant.ExportYAML(container));
            node.Add(TOSName, TOS.ExportYAML());
            if (IsReadHumanDescription(container.Version))
            {
                node.Add(HumanDescriptionName, HumanDescription.ExportYAML(container));
            }
            return(node);
        }
Exemplo n.º 4
0
        public override void Read(EndianStream stream)
        {
            base.Read(stream);

            ControllerSize = stream.ReadUInt32();
            Controller.Read(stream);
            TOS.Read(stream);
            m_animationClips = stream.ReadArray(() => new PPtr <AnimationClip>(AssetsFile));
            StateMachineBehaviourVectorDescription.Read(stream);
            m_stateMachineBehaviours = stream.ReadArray(() => new PPtr <MonoBehaviour>(AssetsFile));
            if (IsReadMultiThreadedStateMachine)
            {
                MultiThreadedStateMachine = stream.ReadBoolean();
            }
            stream.AlignStream(AlignType.Align4);
        }
        public override void Read(AssetStream stream)
        {
            base.Read(stream);

            m_TOS.Clear();

            ControllerSize = stream.ReadUInt32();
            Controller.Read(stream);
            TOS.Read(stream);
            m_animationClips = stream.ReadArray <PPtr <AnimationClip> >();

            if (IsReadStateMachineBehaviourVectorDescription(stream.Version))
            {
                StateMachineBehaviourVectorDescription.Read(stream);
                m_stateMachineBehaviours = stream.ReadArray <PPtr <MonoBehaviour> >();
            }

            if (IsReadMultiThreadedStateMachine(stream.Version))
            {
                MultiThreadedStateMachine = stream.ReadBoolean();
            }
            stream.AlignStream(AlignType.Align4);
        }
 /// <summary>
 ///     Initializes a new instance of the <see cref="PlayerBoxScore" /> class.
 /// </summary>
 /// <param name="dict">The dictionary containing the player box score.</param>
 /// <param name="playerID">The player ID.</param>
 /// <param name="teamID">The team.</param>
 /// <param name="playerName">The player's name.</param>
 public PlayerBoxScore(Dictionary <string, string> dict, int playerID, int teamID, string playerName = "")
 {
     PlayerID      = playerID;
     Name          = playerName;
     TeamID        = teamID;
     IsStarter     = IsStarter.TrySetValue(dict, "Starter", typeof(bool));
     PlayedInjured = PlayedInjured.TrySetValue(dict, "Injured", typeof(bool));
     IsOut         = IsOut.TrySetValue(dict, "DNP", typeof(bool));
     MINS          = MINS.TrySetValue(dict, "MINS", typeof(UInt16));
     PTS           = PTS.TrySetValue(dict, "PTS", typeof(UInt16));
     REB           = REB.TrySetValue(dict, "REB", typeof(UInt16));
     AST           = AST.TrySetValue(dict, "AST", typeof(UInt16));
     STL           = STL.TrySetValue(dict, "STL", typeof(UInt16));
     BLK           = BLK.TrySetValue(dict, "BLK", typeof(UInt16));
     TOS           = TOS.TrySetValue(dict, "TO", typeof(UInt16));
     FGM           = FGM.TrySetValue(dict, "FGM", typeof(UInt16));
     FGA           = FGA.TrySetValue(dict, "FGA", typeof(UInt16));
     TPM           = TPM.TrySetValue(dict, "3PM", typeof(UInt16));
     TPA           = TPA.TrySetValue(dict, "3PA", typeof(UInt16));
     FTM           = FTM.TrySetValue(dict, "FTM", typeof(UInt16));
     FTA           = FTA.TrySetValue(dict, "FTA", typeof(UInt16));
     OREB          = OREB.TrySetValue(dict, "OREB", typeof(UInt16));
     FOUL          = FOUL.TrySetValue(dict, "FOUL", typeof(UInt16));
 }
Exemplo n.º 7
0
 public Settings(ushort capacity, byte maxChannel = Protocol.MTC.Default, ushort maxTranmissionUnit = Protocol.MTU.Default, uint maxBandwidth = Protocol.Bandwidth.MaxValue, int maxTransmissionBacklog = int.MaxValue, byte ttl = Protocol.TTL.Default, int blockSize = Protocol.Memory.Block.Size.Default, TOS tos = TOS.LowDelay)
     : this(capacity, maxChannel, maxTranmissionUnit, maxBandwidth, maxTransmissionBacklog, in Host.Stream.Settings.Default, in Host.Stream.Settings.Default, ttl, blockSize)
 {
 }