コード例 #1
0
ファイル: GameObject.cs プロジェクト: MegaMane/Texticular
 protected virtual void OnLocationChanged(string currentLocation, string newLocation)
 {
     if (LocationChanged != null)
     {
         ItemLocationChangedEventArgs args = new ItemLocationChangedEventArgs();
         args.CurrentLocation = currentLocation;
         args.NewLocation     = newLocation;
         LocationChanged(this, args);
     }
 }
コード例 #2
0
 void ItemLocationChangedHandler(object sender, ItemLocationChangedEventArgs args)
 {
     //Special events for specific item location changes
 }