• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# MirObjects.MapObject类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Client.MirObjects.MapObject的典型用法代码示例。如果您正苦于以下问题:C# MapObject类的具体用法?C# MapObject怎么用?C# MapObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MapObject类属于Client.MirObjects命名空间,在下文中一共展示了MapObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AddObject

        public void AddObject(MapObject ob)
        {
            if (CellObjects == null) CellObjects = new List<MapObject>();

            CellObjects.Insert(0, ob);
            Sort();
        }
开发者ID:thedeaths,项目名称:official-mir2c-,代码行数:7,代码来源:MapCode.cs


示例2: RemoveObject

        public void RemoveObject(MapObject ob)
        {
            CellObjects.Remove(ob);

            if (CellObjects.Count == 0) CellObjects = null;
            else Sort();
        }
开发者ID:thedeaths,项目名称:official-mir2c-,代码行数:7,代码来源:MapCode.cs


示例3: BuffEffect

 public BuffEffect(MLibrary library, int baseIndex, int count, int duration, MapObject owner, bool blend, BuffType buffType)
     : base(library, baseIndex, count, duration, owner, 0)
 {
     Repeat = true;
     Blend = blend;
     BuffType = buffType;
     Light = -1;
 }
开发者ID:rise-worlds,项目名称:mir2,代码行数:8,代码来源:Effect.cs


示例4: Effect

        public Effect(MLibrary library, int baseIndex, int count, int duration, MapObject owner, long starttime = 0)
        {
            Library = library;
            BaseIndex = baseIndex;
            Count = count == 0 ? 1 : count;
            Duration = duration;
            Start = starttime == 0 ? CMain.Time : starttime;

            NextFrame = Start + (Duration / Count) * (CurrentFrame + 1);
            Owner = owner;
            Source = Owner.CurrentLocation;
        }
开发者ID:WillMcKill,项目名称:MirRage,代码行数:12,代码来源:Effect.cs


示例5: DelayedExplosionEffect

 public DelayedExplosionEffect(MLibrary library, int baseIndex, int count, int duration, MapObject owner, bool blend, int Stage, long until)
     : base(library, baseIndex, count, duration, owner)
 {
     Repeat = (Stage == 2) ? false : true;
     Blend = blend;
     stage = Stage;
     effectlist.Add(this);
     if (stage == 1)
         SoundManager.PlaySound(20000 + 125 * 10);
     if (stage == 2)
         SoundManager.PlaySound(20000 + 125 * 10 + 5);
 }
开发者ID:rise-worlds,项目名称:mir2,代码行数:12,代码来源:Effect.cs


示例6: SortObject

 public void SortObject(MapObject ob)
 {
     M2CellInfo[ob.MapLocation.X, ob.MapLocation.Y].Sort();
 }
开发者ID:ElijahLOMCN,项目名称:mir2,代码行数:4,代码来源:GameScene.cs


示例7: AddObject

 public void AddObject(MapObject ob)
 {
     M2CellInfo[ob.MapLocation.X, ob.MapLocation.Y].AddObject(ob);
 }
开发者ID:ElijahLOMCN,项目名称:mir2,代码行数:4,代码来源:GameScene.cs


示例8: RemoveObject

 public void RemoveObject(MapObject ob)
 {
     M2CellInfo[ob.MapLocation.X, ob.MapLocation.Y].RemoveObject(ob);
 }
开发者ID:ElijahLOMCN,项目名称:mir2,代码行数:4,代码来源:GameScene.cs


示例9: SpecialEffect

 public SpecialEffect(MLibrary library, int baseIndex, int count, int duration, MapObject owner, bool blend, bool drawBehind, uint type)
     : base(library, baseIndex, count, duration, owner, 0, drawBehind)
 {
     Blend = blend;
     DrawBehind = drawBehind;
     EffectType = type;
     Light = -1;
 }
开发者ID:ufaith,项目名称:cmir2,代码行数:8,代码来源:Effect.cs


示例10: ElementsEffect

        bool loopit = false;//soundloop

        public ElementsEffect(MLibrary library, int baseIndex, int count, int duration, MapObject owner, bool blend, int elementType, int killtime, bool loopon = false)
            : base(library, baseIndex, count, duration, owner)
        {
            Repeat = true;
            Blend = blend;
            myType = elementType;
            killAt = killtime;
            //
            loopit = loopon;
            StopSounds();
            StartSound();
        }
开发者ID:ufaith,项目名称:cmir2,代码行数:14,代码来源:Effect.cs


示例11: InterruptionEffect

 public InterruptionEffect(MLibrary library, int baseIndex, int count, int duration, MapObject owner, bool blend, long starttime = 0)
     : base(library, baseIndex, count, duration, owner)
 {
     Repeat = true;
     Blend = blend;
     effectlist.Add(this);
 }
开发者ID:ufaith,项目名称:cmir2,代码行数:7,代码来源:Effect.cs


示例12: Missile

 public Missile(MLibrary library, int baseIndex, int count, int duration, MapObject owner, Point target, bool direction16 = true)
     : base(library, baseIndex, count, duration, owner)
 {
     Missiles.Add(this);
     Source = Owner.CurrentLocation;
     Destination = target;
     Direction = direction16 ? MapControl.Direction16(Source, Destination) : (int)Functions.DirectionFromPoint(Source, Destination);
 }
开发者ID:ufaith,项目名称:cmir2,代码行数:8,代码来源:Effect.cs


示例13: LightEffect

 public LightEffect(int duration, MapObject owner, long starttime = 0, int lightDistance = 6, Color? lightColour = null)
     : base(null, 0, 0, duration, owner, starttime)
 {
     Light = lightDistance;
     //LightColour = lightColour == null ? Color.White : (Color)lightColour;
 }
开发者ID:thedeaths,项目名称:mir2,代码行数:6,代码来源:Effect.cs


示例14: ClearMagic

 public void ClearMagic()
 {
     NextMagic = null;
     NextMagicDirection = 0;
     NextMagicLocation = Point.Empty;
     NextMagicObject = null;
 }
开发者ID:ufaith,项目名称:cmir2,代码行数:7,代码来源:UserObject.cs


示例15: Remove

        public void Remove()
        {
            if (MouseObject == this) MouseObject = null;
            if (TargetObject == this) TargetObject = null;
            if (MagicObject == this) MagicObject = null;

            if (this == User.NextMagicObject)
                User.ClearMagic();

            MapControl.Objects.Remove(this);
            GameScene.Scene.MapControl.RemoveObject(this);

            if (ObjectID != GameScene.NPCID) return;

            GameScene.NPCID = 0;
            GameScene.Scene.NPCDialog.Hide();
        }
开发者ID:xiaofengzhiyu,项目名称:CSharpMir,代码行数:17,代码来源:MapObject.cs



注:本文中的Client.MirObjects.MapObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MirObjects.QueuedAction类代码示例发布时间:2022-05-24
下一篇:
C# MirControls.MirTextBox类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap