Example #1
0
        public override void Deserialize(MyObjectBuilder_ComponentBase baseBuilder)
        {
            MyObjectBuilder_ContainerDropComponent component = baseBuilder as MyObjectBuilder_ContainerDropComponent;

            this.Competetive    = component.Competetive;
            this.GPSName        = component.GPSName;
            this.Owner          = component.Owner;
            this.m_playingSound = component.PlayingSound;
            this.m_playSound    = !string.IsNullOrEmpty(this.m_playingSound);
        }
Example #2
0
        public override MyObjectBuilder_ComponentBase Serialize(bool copy = false)
        {
            MyObjectBuilder_ContainerDropComponent component1 = MyComponentFactory.CreateObjectBuilder(this) as MyObjectBuilder_ContainerDropComponent;

            component1.Competetive  = this.Competetive;
            component1.GPSName      = this.GPSName;
            component1.Owner        = this.Owner;
            component1.PlayingSound = this.m_playingSound;
            return(component1);
        }