Exemplo n.º 1
0
        public InteractiveProp Copy(Vector3 Position, int LayerIndex)
        {
            InteractiveProp NewProp = Copy();

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

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

            foreach (InteractiveProp ActiveProp in BattleMapInteractiveProp.Values)
            {
                ActiveProp.Load(Content);
                DicInteractiveProp.Add(ActiveProp.PropName, ActiveProp);
            }
        }
Exemplo n.º 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);
        }