コード例 #1
0
 public ContactElement(GLEffect a_oDefaultEffect, SystemContact a_oContact)
     : base(a_oContact)
 {
     // Create travel Line element:
     m_oTravelLine = new TravelLine(a_oDefaultEffect, a_oContact.faction.FactionColor);
     this.Children.Add(m_oTravelLine);
 }
コード例 #2
0
ファイル: ContactElement.cs プロジェクト: txe/Pulsar4x
        public ContactElement(GLEffect a_oDefaultEffect, SystemContact a_oContact)
            : base(a_oContact)
        {
            // Create travel Line element:
            m_oTravelLine = new TravelLine(a_oDefaultEffect, a_oContact.faction.FactionColor);
            this.Children.Add(m_oTravelLine);

            _LastSensorUpdateAck   = 0;
            _SensorContactElements = new Dictionary <Guid, SensorElement>();
            _DefaultEffect         = a_oDefaultEffect;
        }
コード例 #3
0
        public ContactElement(GLEffect a_oDefaultEffect, SystemContact a_oContact)
            : base(a_oContact)
        {
            // Create travel Line element:
            m_oTravelLine = new TravelLine(a_oDefaultEffect, a_oContact.faction.FactionColor);
            this.Children.Add(m_oTravelLine);

            _LastSensorUpdateAck = 0;
            _SensorContactElements = new Dictionary<Guid,SensorElement>();
            _DefaultEffect = a_oDefaultEffect;
        }