Beispiel #1
0
        public InteractiveProp Copy(Vector3 Position, int LayerIndex)
        {
            InteractiveProp NewProp = Copy();

            NewProp.Position   = Position;
            NewProp.LayerIndex = LayerIndex;

            return(NewProp);
        }
        private void LoadInteractiveProps()
        {
            Dictionary <string, InteractiveProp> BattleMapInteractiveProp = InteractiveProp.LoadProps(this);

            foreach (InteractiveProp ActiveProp in BattleMapInteractiveProp.Values)
            {
                ActiveProp.Load(Content);
                DicInteractiveProp.Add(ActiveProp.PropName, ActiveProp);
            }
        }
Beispiel #3
0
        public InteractiveProp LoadCopy(BinaryReader BR)
        {
            InteractiveProp NewProp = Copy();

            NewProp.Position   = new Vector3(BR.ReadSingle(), BR.ReadSingle(), 0);
            NewProp.LayerIndex = BR.ReadInt32();

            NewProp.DoLoad(BR);

            return(NewProp);
        }